Subscribe to Get Free Material Updates!
Visit my new blog WebData Scraping - Web Scraping Service provider company in India.
clear
echo "Enter file name : "
read filename
str=`find . -name $filename`
if [ "$str" == "" ];then
echo "File not found"
exit 1
fi
path=`pwd`
len=`echo $str | wc -c`
str=`echo $str | cut -d "." -f 2-3`
echo "Full path of file is $path$str"
Posted in: Shell Script


0 comments:
Post a Comment