Peter's Blog

Another guy talking nonsense!

List only files (no folders)

without comments

Quick note how to list files without directories.

Windows:
dir /a:-d

Linux:
ls -l | grep ^-

Second command should work also in Mac OS X from terminal, but will have to check it just to be sure.

Written by Peter

May 27th, 2010 at 12:27 pm

Posted in IT,Main,Tips

Tagged with , , ,

Leave a Reply