Search This Blog

ls: list only files

for f in *; do [[ -d "$f" ]] || echo "$f"; done
find . -maxdepth 1 -type f -printf '%f\n'

No comments:

Post a Comment