[ADMIN] off-topic - list files on linux

2008-03-28 Thread A.Burbello
Hi people, just a rapid question related to linux 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?? Thank you in ad

Re: [ADMIN] off-topic - list files on linux

2008-03-28 Thread Achilleas Mantzios
Στις Friday 28 March 2008 14:39:53 ο/η A.Burbello έγραψε: > ls -t1p  | grep -v / | grep -v backup | head -1 maybe: ls -t1p | grep -v / | grep -v backup | grep -v `ls -t1p | grep -v / | grep -v backup | head -1` -- Achilleas Mantzios -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql

Re: [ADMIN] off-topic - list files on linux

2008-03-28 Thread Achilleas Mantzios
Στις Friday 28 March 2008 14:39:53 ο/η A.Burbello έγραψε: > ls -t1p  | grep -v / | grep -v backup | head -1 maybe: ls -t1p | grep -v / | grep -v backup | grep -v `ls -t1p | grep -v / | grep -v backup | head -1` -- Achilleas Mantzios -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql

Re: [ADMIN] off-topic - list files on linux

2008-03-28 Thread salman
Achilleas Mantzios wrote: Στις Friday 28 March 2008 14:39:53 ο/η A.Burbello έγραψε: ls -t1p | grep -v / | grep -v backup | head -1 maybe: ls -t1p | grep -v / | grep -v backup | grep -v `ls -t1p | grep -v / | grep -v backup | head -1` 1) the -e flag for grep can be used to group strings

Re: [ADMIN] off-topic - list files on linux

2008-03-29 Thread hubert depesz lubaczewski
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

Re: [ADMIN] off-topic - list files on linux

2008-03-30 Thread Achilleas Mantzios
Στις Friday 28 March 2008 19:38:02 ο/η salman έγραψε: > > Achilleas Mantzios wrote: > > Στις Friday 28 March 2008 14:39:53 ο/η A.Burbello έγραψε: > >> ls -t1p | grep -v / | grep -v backup | head -1 > > > > maybe: > > ls -t1p | grep -v / | grep -v backup | grep -v `ls -t1p | grep -v / | grep > >