pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: salman <salmanb@quietcaresystems.com>
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-admin@postgresql.org, "A.Burbello" <burbello3000@yahoo.com.br>
Subject: Re: off-topic - list files on linux
Date: Fri, 28 Mar 2008 13:38:02 -0400
Message-ID: <47ED2CFA.4080308@quietcaresystems.com> (raw)
In-Reply-To: <20667036.7681206722394920.JavaMail.root@mail.worldcycling.com>
References: <871103.54592.qm@web36203.mail.mud.yahoo.com>
	<20667036.7681206722394920.JavaMail.root@mail.worldcycling.com>



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



view thread (6+ messages)  latest in thread

Message-ID: <47ED2CFA.4080308@quietcaresystems.com>
Permalink:  ../47ED2CFA.4080308@quietcaresystems.com/
Also on:    postgresql.org/message-id/47ED2CFA.4080308@quietcaresystems.com

 · 

reply

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: salmanb@quietcaresystems.com, achill@matrix.gatewaynet.com, burbello3000@yahoo.com.br
  Subject: Re: off-topic - list files on linux
  In-Reply-To: <47ED2CFA.4080308@quietcaresystems.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