How to change directory in a shell script?
by Ramya[ Edit ] 2009-12-05 19:46:49
Change directory in a shell script:
To change directory in a shell script use "cd" command.
echo "Enter the directory name:"
read fname
cd $fname
Above command will change the current working directory to the given directory name.