Skip to content

Instantly share code, notes, and snippets.

@cwage
Created November 7, 2016 16:00
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 cwage/ebd9ea20ef35e7b91940e5f838933195 to your computer and use it in GitHub Desktop.
Save cwage/ebd9ea20ef35e7b91940e5f838933195 to your computer and use it in GitHub Desktop.
$ time grep abrt /var/log/messages > /dev/null
real 0m0.331s
user 0m0.299s
sys 0m0.031s
$ time awk '/abrt/ { print; }' /var/log/messages > /dev/null
real 0m5.162s
user 0m5.040s
sys 0m0.103s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment