Created
November 8, 2017 05:10
-
-
Save sk0x1234/7907cc0cb7fa0f84b32bac2e890ac5da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# or condition | |
grep -E 'pattern1|pattern2' filename | |
\\ egrep = grep -E | |
# And condition | |
grep -E 'pattern1.*pattern2' filename | |
# NOT | |
grep -v 'pattern1' filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment