bug-fileutils
[Top][All Lists]
Advanced

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

ls options: accept stdin, and list files except for...


From: Dan Heller
Subject: ls options: accept stdin, and list files except for...
Date: Sun, 14 Sep 2003 00:01:38 +0000

intent (example):  list all files in a directory that aren't html files.

    $ ls --except *.html

I can obviously pipe ls though grep -v to get the result, but I can't put
the result back into ls because ls doesn't accept stdin. Hence, this does
not work:

    $ ls | grep -v .html | ls [OPTIONS]

I want the nicely formatted result that ls gives (w/appropriate formatting
params), but from input not necessarily from the command line.

-- 
--dan
http://www.danheller.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]