how to display the directory only.
in linux or unix, one can use the command below to display the directory only:
ls -l | grep ^d
ls -l | grep ^d | gawk '{print $9}'
other tips as well:
echo */
ls-d ./*/
ls -d */
find . -type d
all above will list the directories.
No comments:
Post a Comment