Quote:
Originally Posted by Hangman2
This displays any subdir if any under dir4 also.
|
It will display the name, but it will not descend into it.
If you only want files and not directories:
Code:
for f in /dir1/dir2/dir3/dir4/*
do
[ -f "$f" ] && printf "%s\n" "$f"
done