List only files (no folders)

· by Peter · Read in about 1 min · (38 words) ·

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.