list files but not directory

Bryn M. Reeves bmr at redhat.com
Fri Aug 21 12:34:18 UTC 2009


On Fri, 2009-08-21 at 05:17 -0700, ann kok wrote:
> ls -1 but I only want the file to list not directory

ls -l | grep -v '^d'

But that will also show you symlinks, fifos, device nodes etc.

Bryn.





More information about the users mailing list