ALL SUBDIRECTORY IN CURRENT DIRECTORY:
echo "to
display all sub directory"
for i in *
do
if [ -d $i ]
then
echo $i "is
an directory"
fi
done
OUTPUT:
[@localhost
~]$ sh subdirt.sh
to
display all sub directory
123 is an
directory
324@86 is
an directory
No comments:
Post a Comment
Thanks for your valuable comments