Re: off-topic - list files on linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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

--
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux