#!/bin/sh
list()
{
cd $1
ls -l
for i in $(ls $1)
do
if [ -d $i ]
then
directory="$1/$i"
echo "The directory $directory is a subdirectory of $1, which includes:"
list $directory
cd $1
fi
done
}
list()
{
cd $1
ls -l
for i in $(ls $1)
do
if [ -d $i ]
then
directory="$1/$i"
echo "The directory $directory is a subdirectory of $1, which includes:"
list $directory
cd $1
fi
done
}