Find a Pattern from a File [Shell Program]



echo "Enter
pattern to be searched:\c"


read pname


echo "Enter file
name :\c"


read fname


echo "Search for
$pname from file $fname:"


grep "$pname" $fname








0 Comments