Skip site navigation (1) Skip section navigation (2)

Re: off-topic - list files on linux

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: "A(dot)Burbello" <burbello3000(at)yahoo(dot)com(dot)br>
Cc: Postgres Adm List <pgsql-admin(at)postgresql(dot)org>
Subject: Re: off-topic - list files on linux
Date: 2008-03-29 14:04:46
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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


quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :) - blog dla ciebie (i moje CV)

In response to

pgsql-admin by date

Next:From: Julius TuskenisDate: 2008-03-29 14:55:51
Subject: pg_get_expr
Previous:From: Shane AmblerDate: 2008-03-29 02:40:02
Subject: Re: weird network issue

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group