list files but not directory

William Case billlinux at rogers.com
Sat Aug 22 07:59:30 UTC 2009


Hi Tim;
On Sat, 2009-08-22 at 16:58 +0930, Tim wrote:
> On Fri, 2009-08-21 at 10:35 -0400, William Case wrote:
> > It seems illogical, that 'ls' wouldn't have a flag that just shows
> > files when it has a flag for directories.
> 
> Though that flag "ls -d" has a completely different purpose (show
> directory names, rather than go into them and list their contents).
> 
True.  But whatever its purpose, it does give me a list of directory
names.

All that I am saying is that it would be handy to have a simple util
that listed file names.  I suggest 'ls' because it is probably the most
used and first learned listing utility and therefore would be the place
to have it.  It would be useful to beginners (particularly those who do
not yet have any idea what a regexp is) and for script writing or piping
to sed, awk, grep or a new file (or for appending).

The idea is getting no positive responses, so I will drop it.

-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 23.1.1




More information about the fedora-list mailing list