Re: How to list a directory "all except"

Αρχική Σελίδα
Συνημμένα:
Μήνυμα σαν ηλεκτρονικό μήνυμα
+ (text/plain)
Delete this message
Reply to this message
Συντάκτης: Matt Graham
Ημερομηνία:  
Προς: Main PLUG discussion list
Αντικείμενο: Re: How to list a directory "all except"
On 2013-08-07 08:04, wrote:
> ls -ltr *htm
> lists all [things] ending in 'htm'
>
> But how could I list all contents excluding those ending in 'htm'?


By using grep as a filter:

ls -ltr | grep -v 'htm$'

--
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss