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

Óôéò 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



view thread (6+ messages)

Message-ID: <200803310949.05356.achill@matrix.gatewaynet.com>
Permalink:  ../200803310949.05356.achill@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/200803310949.05356.achill@matrix.gatewaynet.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: achill@matrix.gatewaynet.com, salmanb@quietcaresystems.com, burbello3000@yahoo.com.br
  Subject: Re: off-topic - list files on linux
  In-Reply-To: <200803310949.05356.achill@matrix.gatewaynet.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