get all files from a directory without details
linux, ls
Solution
For finding files matching a certain expression there exists `find`. Its man-page is quite good and includes also some interesting examples. For getting only the files of a directory you can use:
find /var -maxdepth 1 -type f -printf "%f\n"
Problem
I discovered that ``` ls -AF /var/ |grep \/$ ``` helps me to find all directories from a directories without more information. Now i need exactly the opposite - showing all files without any further information just the file name in each line ``` file1 file2 file3 ``` and filtering the directories because those - i don't need