Operating System Shell Scripting/Programs on Linux
Linux Shell Scripting programs
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment