shell script search from file content
grep 'word' filename grep 'word' file1 file2 file3 grep 'string1 string2' filename cat otherfile | grep 'something' command | grep 'something' command option1 | grep 'data' grep --color 'data' fileName
Source: www.howtoforge.com
grep search in file bash
#!/bin/bash grep "$1" $2 # Search the string $1 in the file $2