Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 673932E0038 for ; Sat, 29 Mar 2008 11:04:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 68113-09 for ; Sat, 29 Mar 2008 11:04:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from depesz.com (depesz.com [88.198.37.40]) by postgresql.org (Postfix) with ESMTP id AEED72E0035 for ; Sat, 29 Mar 2008 11:04:51 -0300 (ADT) Received: from depesz by depesz.com with local (Exim 4.63) (envelope-from ) id 1Jfbfq-0002u3-Cj; Sat, 29 Mar 2008 15:04:46 +0100 Date: Sat, 29 Mar 2008 15:04:46 +0100 From: hubert depesz lubaczewski To: "A.Burbello" Cc: Postgres Adm List Subject: Re: off-topic - list files on linux Message-ID: <20080329140446.GA10074@depesz.com> Reply-To: depesz@depesz.com References: <871103.54592.qm@web36203.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <871103.54592.qm@web36203.mail.mud.yahoo.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/248 X-Sequence-Number: 28731 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?? ls -t1p | grep -v / | grep -v backup | tac | tail -n +2 depesz -- quicksil1er: "postgres is excellent, but like any DB it requires a highly paid DBA. here's my CV!" :) http://www.depesz.com/ - blog dla ciebie (i moje CV)