Στις 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
> >
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
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
Στις 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`
--
Achilleas Mantzios
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql
Στις 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`
--
Achilleas Mantzios
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql
Hi people,
just a rapid question related to linux
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??
Thank you in ad