> > But then there is = and != for strings (for example), so this argument
> > is thin :-).
> 
> if we can easily get modified time of a file in the format of UNIX time,
> where "easily" means "in the set of plan 9 commands".

there are certainly better ways to do this, but this works:

- erik

#!/bin/rc
rfork e

p='
$1 == "mtime:" {
        gsub("[()]", "", $8)
        print $8
}'

for(i){
        syscall -s fstat 0 buf 1024<$i>[2=1] | 
                awk $p
}

Reply via email to