1

List only regular files (but not directories) in current directory

view story
linux-howto

http://unix.stackexchange.com – I can use ls -ld */ to list all the directory entries in the current directory. Is there a similarly easy way to just list all the regular files in the current directory? I know I can use find find . -maxdepth 1 -type f or stat stat -c "%F %n" * | grep "regular file" | cut -d' ' -f 3- but these do not strike me as being overly elegant. Is there a nice short way to list only the regular files (I don't care about devices, pipes, etc.) but not the sub-directories of the current directory? Listing symbolic links as well would be a plus, but is not a necessity. (HowTos)