Skip to content

Instantly share code, notes, and snippets.

@seudut
Last active August 11, 2016 09:42
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 seudut/0705ff9f519ba001cf3268e2243bf1c1 to your computer and use it in GitHub Desktop.
Save seudut/0705ff9f519ba001cf3268e2243bf1c1 to your computer and use it in GitHub Desktop.
# print the line contains the expression
perl -ne 'print if /expression/' xxx.log
# print some capture datea
perl -ne 'print "$1\n" if /aaa=(\d+)\s.*/' xxx.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment