Skip to content

Instantly share code, notes, and snippets.

@icchy
Created February 14, 2016 15:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icchy/ddacc226eb970c838862 to your computer and use it in GitHub Desktop.
Save icchy/ddacc226eb970c838862 to your computer and use it in GitHub Desktop.
access_logから雑にOS固有っぽい文字列を抽出するやつ
cat access_* | gawk -v FPAT='(\"[^\"]+\")' '{print $3}' | cut -d"(" -f2- | cut -d")" -f1 | sort | uniq -c | sort -gr | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment