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

"Dan Heller" <[email protected]> Sun, 14 Sep 2003 00:01:38 +0000
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
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/