sed -i "24s/timeoutValue1/timeValue2/" fileName
Ref:
Replace String Based on Line Number
sed -i "24s/timeoutValue1/timeValue2/" fileName
grep -E "ERROR|FAIL" filename
grep "ERROR\|FAIL" filename
grep -v "PASS" filename
sudo dhclient eth0
grep -v "word" <file or location>For example, the results of a grep search can include a lot of results which are not relevant. Eliminate those by using grep -v
grep "blah" filename | grep -v "foo"
dig +short myip.opendns.com @resolver1.opendns.com