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








Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C