GREP COMMAND


SOURCE CODE:
[examuser35@localhost Jebastin]$ cat>god
god  is great
god is present everywhere
[2]+ Stopped                 cat>god
echo “displaying a string from a file”
echo “get file name”
read s
echo “get string”
read i
grep $i $s

OUTPUT:
[examuser35@localhost Jebastin]$ grep.sh
displaying a string from a file
get file name
god
get string
great
god is great
Previous
Next Post »

Still not found what you are looking for? Try again here.