SCRIPTS TO CREATE THE FILE/DIRECTORY UNDER THE ONTHER DIRECTORY

SCRIPTS TO CREATE THE FILE/DIRECTORY UNDER THE ONTHER DIRECTORY

#!/bash/sh
old=IFS
IFS="/"
for x in $*
do
if [ -d $x ]
then

echo "already existed"
cd $x
else if [ -f $x ]
then
echo "filename $x"
exit 0
else
mkdir $x
cd $x
echo "the current working directory is`pwd`"
fi
fi
done