Help: Bash script that show you the last file created?
From:
tal396
Subject:
Help: Bash script that show you the last file created?
Date:
Sun, 15 Feb 2009 07:32:15 -0800 (PST)
hey, i created a backup dir that created backup every hours...
there is any way to get the last file that created that is fomat is *.sql
?
thats what i've done, but its not working so well...
cd "/home/server/backups/local_backups/" ; find -type d | find . -name
'*.sql' | tac | tail -1;
Thanks alot!1=)
--
View this message in context:
http://www.nabble.com/Help%3A-Bash-script-that-show-you-the-last-file-created--tp22023778p22023778.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.