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

Re: off-topic - list files on linux

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Cc: salman <salmanb(at)quietcaresystems(dot)com>, "A(dot)Burbello" <burbello3000(at)yahoo(dot)com(dot)br>
Subject: Re: off-topic - list files on linux
Date: 2008-03-31 06:49:04
Message-ID: 200803310949.05356.achill@matrix.gatewaynet.com (view raw or flat)
Thread:
Lists: pgsql-admin
Στις 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 -v backup | head -1`
> > 
> 
> 1) the -e flag for grep can be used to group strings so you don't have 
> to pipe multiple times (eg: grep -i -e bleh -e bleh2 -e bleh3 -ve backup)
> 
> 2) wouldn't find be easier to use? find . -maxdepth 1 -type -f -print
> 
I tried to give an example, using *only* primitives that already existed in the original question.
> -salman
> 



-- 
Achilleas Mantzios

In response to

pgsql-admin by date

Next:From: hubert depesz lubaczewskiDate: 2008-03-31 07:51:22
Subject: Re: how to improve COPY timings or reduce data loading time using copy
Previous:From: Potluri SrikanthDate: 2008-03-31 06:26:52
Subject: how to improve COPY timings or reduce data loading time using copy

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