From: hubert depesz lubaczewski <depesz@depesz.com>
To: A.Burbello <burbello3000@yahoo.com.br>
Cc: Postgres Adm List <pgsql-admin@postgresql.org>
Subject: Re: off-topic - list files on linux
Date: Sat, 29 Mar 2008 15:04:46 +0100
Message-ID: <20080329140446.GA10074@depesz.com> (raw)
In-Reply-To: <871103.54592.qm@web36203.mail.mud.yahoo.com>
References: <871103.54592.qm@web36203.mail.mud.yahoo.com>
On Fri, Mar 28, 2008 at 09:39:53AM -0300, A.Burbello wrote:
> How can I get the files in a directory, but not the
> last file updated/created?
> I could get the last file updated with:
> ls -t1p | grep -v / | grep -v backup | head -1
> How can I get the inverse list, other files without
> the last??
ls -t1p | grep -v / | grep -v backup | tac | tail -n +2
depesz
--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA. here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: depesz@depesz.com, burbello3000@yahoo.com.br
Subject: Re: off-topic - list files on linux
In-Reply-To: <20080329140446.GA10074@depesz.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox