Use grep command for searching a string in a file
grep tom /etc/passwd
ignore word case
grep -i "tom" /etc/passwd
References
https://www.howtoforge.com/tutorial/linux-grep-command/
grep tom /etc/passwd
ignore word case
grep -i "tom" /etc/passwd
References
https://www.howtoforge.com/tutorial/linux-grep-command/
match lines starts with default
ip route show | grep "^default"
References
https://unix.stackexchange.com/questions/59893/grep-lines-starting-with-1-in-ubuntu
cat LIST | grep -v git
ip route show | grep -v "^default"
References
https://superuser.com/questions/655715/regex-does-not-begin-by-pattern