|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
Find and check timestamps of files.by Malach (Scribe) |
| on May 17, 2000 at 05:05 UTC ( [id://12022]=perlcraft: print w/replies, xml ) | Need Help?? |
1: #!/usr/bin/perl
2:
3: # Simple, but wonderfully useful. Find all files on system with name
4: # supplied on command line, and get a "long" listing of them that shows their
5: # time stamp.
6: #
7: # next step, is to write one that sorts them into order of latest file alteration.
8:
9:
10: foreach $_ (`locate $ARGV[0]`){
11: system ("ls -lt $_");}
Back to
Craft
|
|
||||||||||||||||||||||||||||||||||||||||||