Skip to content

Instantly share code, notes, and snippets.

@murarisumit
Last active April 3, 2017 10:44
Show Gist options
  • Save murarisumit/c6a81f06449409a5ccb1d6800a18160e to your computer and use it in GitHub Desktop.
Save murarisumit/c6a81f06449409a5ccb1d6800a18160e to your computer and use it in GitHub Desktop.
Use AWK for multiple filtering of output generated #awk #bash #gnu/linux
grep search-term file_name | awk '/filter1/ && !/filter2/ && $3!="filter3" { print $1 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment