kwan@uw-june (Sai Choi Kwan) (09/06/85)
Does anyone have a 'ls' program that accepts a date and list only files that have been created or modified since that specified date? Even better, the program can list files that are created or modified between two dates. Choi Kwan {ihnp4,sdcsvax,lbl-csam}!uw-beaver!uw-june!kwan
pls@soessx.UUCP (P.L.Sullivan) (09/09/85)
In article <214@uw-june> kwan@uw-june (Sai Choi Kwan) writes: >Does anyone have a 'ls' program that accepts a date and list only files that >have been created or modified since that specified date? Not exactly what you asked for, but maybe what you need: find pathname -mtime -days -exec ls -ld {} \; where days is days age, not a date; e.g., if days is 4 this lists all files in (and under) pathname that have been modified in the last 4 days. >Even better, the program can list files that are created or modified between >two dates. You can also do that with find: find pathname -mtime -7 -mtime +5 -exec ls -ld {} \; lists all files modified between 5 and 7 days ago. If all you want is the file names, end the command line just before "-exec". Pat Sullivan {ihnp4}!soessx!pls