User:SBSuhas/sandbox

//Linux program to find the file name that is existence in the file system or not

echo "enter the name of the file to find it's existence"

read fname

w='find /home/jss -name $fname | wc -c'

if test $w -ne 0

then echo " file $fname exist in the file system at locatoins :"

find /home/jss -name $fname

else

echo "file $fname dose not exist in the file system"

fi