[Top][All Lists]
[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/
- ls options: accept stdin, and list files except for...,
Dan Heller <=
- Re: ls options: accept stdin, and list files except for..., Richard Dawe, 2003/09/14
- Re: ls options: accept stdin, and list files except for..., Dan Heller, 2003/09/15
- Re: ls options: accept stdin, and list files except for..., Richard Dawe, 2003/09/15
- Re: ls options: accept stdin, and list files except for..., Dan Heller, 2003/09/16
- Re: ls options: accept stdin, and list files except for..., Richard Dawe, 2003/09/16
- Re: ls options: accept stdin, and list files except for..., Dan Heller, 2003/09/16
- Re: ls options: accept stdin, and list files except for..., Richard Dawe, 2003/09/17
- Re: ls options: accept stdin, and list files except for..., Dan Heller, 2003/09/17
- du and wc should be able to read arguments from a file, Jim Meyering, 2003/09/18
- Re: du and wc should be able to read arguments from a file, Bernd Jendrissek, 2003/09/18