list files but not directory

Cameron Simpson cs at zip.com.au
Wed Aug 26 04:19:19 UTC 2009


On 25Aug2009 10:41, Bryn M. Reeves <bmr at redhat.com> wrote:
| On Fri, 2009-08-21 at 17:09 +0400, Hiisi wrote:
| > > any way to list files but not directory
| > 
| > ls -hl | grep ^-
| 
| Lists things that aren't regular files.

No, it lists things that _are_ regular files. You confusing it with
this:

  ls -hl | grep '^[^-]'

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

We now return you to the previously scheduled counter-steering flame-fest
and under-clothing auction, after a few words about your sponsor, the DoD.
        - Denis McKeon <galway at chtm.eece.unm.edu>




More information about the fedora-list mailing list