Sunday, 17 June 2012

Write a shell script to check whether the scanned string is found in a file or not. Display appropriate message


read a;
b= grep $a january.sh;
if [ $? -eq 0 ]
then              
echo character found ;
fi

No comments:

Post a Comment