Ideally, you could even have perl grep through the "locate" database (locatedb) itself, and eliminate the system calls altogether.for $_ (`locate $ARGV[0]`) { chop; -M and $f{$_}=$^T-(3600*24*(-M _)); } for $x (sort { $f{$a} <=> $f{$b} } keys %f) { printf "%s $x\n", scalar localtime($f{$x}); }
In reply to RE: Find and check timestamps of files.
by turnstep
in thread Find and check timestamps of files.
by Malach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |