To search for two strings, I’ve always done:
grep -E ‘foo|bar’ file
TIL, you could also do:
grep -e foo -e bar file
#unix #linux
To search for two strings, I’ve always done:
grep -E ‘foo|bar’ file
TIL, you could also do:
grep -e foo -e bar file
#unix #linux