skybert's Blog

skybert's Avatar Image
Coder of systems, lover of languages, follower of Christ. 台灣女婿
← All posts

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 like or reply, open original post on Emacs.ch