bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help: Bash script that show you the last file created?


From: Paul Jarc
Subject: Re: Help: Bash script that show you the last file created?
Date: Sun, 15 Feb 2009 23:29:36 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

tal396 <tal396@gmail.com> wrote:
> Coz its could be find in alot of subdirs
> like
> /home/server/backups/local_backups/1-1-2009/server/mysql/1-1-2009.sql
> /home/server/backups/local_backups/1-2-2009/server/mysql/1-2-2009.sql
> /home/server/backups/local_backups/1-3-2009/server/mysql/1-3-2009.sql

This will show the most recently modified one of those files:
ls -t /home/server/backups/local_backups/*/server/mysql/*.sql | sed q


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]