Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morteza-mori/600384ebbee39f7657c0c61dd0940456 to your computer and use it in GitHub Desktop.
Save morteza-mori/600384ebbee39f7657c0c61dd0940456 to your computer and use it in GitHub Desktop.
grep
grep -E "Jun 6|Jun 7" error.log.1 > /mnt/aaa.log
cat error.log.1 | grep -E 98162
grep -E "suc|stop|getInOutBytes|found" error.log.1
egrep -iH "max|suc" /var/log/IBSng/MAIN/* --color
grep "89794" .log. | grep "Jun 17" --color
ssh root@172.16.4.12 'grep "19:06:25" /var/log/IBSng/ONLINE_WORKER/* >$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment