Shell script to list all files and folders in a directory

by rajesh 2012-05-01 22:16:00

Linux shell script to list and check folders in a directory

for arg in $(ls /directory)
do
if [ -d /home/$arg ]
then
echo "its directory $arg"
fi
done
1560
like
0
dislike
0
mail
flag

You must LOGIN to add comments