Skip to content

Instantly share code, notes, and snippets.

@morvanabonin
Last active December 15, 2021 18:16
Show Gist options
  • Save morvanabonin/fc5338398a31befe342424a637b0b8de to your computer and use it in GitHub Desktop.
Save morvanabonin/fc5338398a31befe342424a637b0b8de to your computer and use it in GitHub Desktop.
greps commands
# some help and explanation https://www.thegeekstuff.com/2011/10/grep-or-and-not-operators
egrep '[[]]' Comparator-DNS-Error.log | grep -v .ip6.arpa. | grep -Ev '3.131.52.32|13.59.106.13|3.18.34.0'
grep -rin "3.131.52.32" Comparator-DNS-Error.log | awk '{print $13}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment