Manage New Post Logout Login

TIL: Grep Multiple Patterns At The Same Time

Use the repeated flag -e. For example,

grep -e foo -e bar myfile.txt

searches for lines in myfile.txt with either foo, bar, or both in them.



Posted
  • ‹ First
  • « Previous
  • 1
  • 2
  • 3
  • 4

Contact: (Firstname + 'f' + Lastname) At Google's Mail Service
Browse the Archive »