postheadericon Write a shell script to find the global complete path for any file.

clear
echo "Enter File Name : \c "
read fileName

if [ -f $fileName ]
then
str=`find $fileName`
path=`pwd`
echo "Full path of file is $path/$str"

else
echo "file [ $fileName ] not exist in \c "
pwd
fi

0 comments:

Total Pageviews

© BipinRupadiya.com. Powered by Blogger.