latest is a handy little tool that finds you the files which have been modified last in a directory tree. As far as I know, this cannot be done with the find command. It is possible to feed find results into this script, so that latest augments find's power. It certainly does not try to replace find.
/usr/bin/perl), make it executable and put it somewhere in your $PATH under the name latest.
latest: List files by modification date - youngest first. Files are preceded by file date in YYYY.MM.DD HH:MM:SS format. Files can be given on the command line. Directories are traversed. Symlinks are not followed. Default is current directory ("."). Files can be supplied on standard input when first argument is "-". Example: latest latest . latest ~/Backup latest /etc/*.conf latest /etc/inet /etc/netconf ls | latest - find ~ -type f -name "*.java" | latest - Matthias Gaertner - email@example.com - 04.04.2002 - Freeware - Version 1.0
This code was written by me, Matthias Gärtner. It is freeware. Do with it whatever you want. Use at your own risk. No warranty of any kind.
Back to main page. Back to software page.
|This page was last changed on April 4th, 2002. © Matthias Gärtner 2001|