Shell script to check whether inputted directory is in current directory or not
for dir in `ls` doif [ -d $dir ] then echo $dir cd $dir for i in `ls` doif [ -d $i ] then echo " " $i fi done cd .. fi done