echo */echo */ ” ” | sed “s/\/ /\n/g” #throw trailing “/”find . -type d -maxdepth 1 -mindepth 1find . -type d -printf ‘%P\b’ #just directory namesfind . -maxdepth 1 -mindepth 1 -type d -printf %P\\n #Print directory names one line at a time, without any other charactersls -d */ls -d .*/ #see hidden directoriesls -d */ | xargs -l basename #just directory namestree -d -L 1ls -l | grep “^d”tree -fid
List only file and not directory - ls command
0 件のコメント:
コメントを投稿