> Use find instead of ls:
Good advice.
> # all files, recursively, created within the past 30 days
> find . -ctime -30
Bzzt! Incorrect! "ctime" is not "created time", it's "inode change
time"-- i.e., the last time you used chmod/chown/etc on the file.
There's no way to look at a file in Unix and know when it was created.
But don't feel bad, because this is a common misconception.
Anyway, it's pretty clear that Mr. O really wants "last modified time"
(-mtime for find). At least, that's the ordering you're getting with
"ls -t".
There are several examples you might find useful in my "Command-Line
Kung Fu" presentation:
http://www.deer-run.com/~hal/UnixCommandLineKungFu.pdf
--
Hal Pomeranz, Founder/CEO Deer Run Associates [email protected]
Network Connectivity and Security, Systems Management, Training
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug