Re: off-topic - list files on linux

From: salman <salmanb(at)quietcaresystems(dot)com>
To: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org, "A(dot)Burbello" <burbello3000(at)yahoo(dot)com(dot)br>
Subject: Re: off-topic - list files on linux
Date: 2008-03-28 17:38:02
Message-ID: 47ED2CFA.4080308@quietcaresystems.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

-salman

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Shane Ambler 2008-03-28 17:45:18 Re: weird network issue
Previous Message kevin kempter 2008-03-28 17:18:58 Re: weird network issue