Created
April 18, 2015 06:40
-
-
Save ryuichiueda/862b1c9f7b5b5c741f80 to your computer and use it in GitHub Desktop.
福岡会場へ・・・
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ueda@tencore:~/tmp/nasa$ zcat access_log.nasa.gz | awk '{print $4,$0}' | | |
sed 's/^\[//' | awk '{gsub(/[\/:]/," ",$1);print}' | | |
awk '{$2=$2=="Jul"?"07":$2;$2=$2=="Aug"?"08":$2;print}' | | |
sed 's;^\(..\) \(..\) \(....\) \(..\) \(..\) \(..\);\3\2\1 \4\5\6;' > access_log | |
ueda@tencore:~/tmp/danger$ zcat access.log.shellshock.gz | awk '{print $4,$0}' | | |
sed 's/^\[//' | awk '{gsub(/[\/:]/," ",$1);print}' | | |
sed -e 's/Sep/09/' -e 's/Oct/10/' -e 's/Nov/11/' -e 's/Dec/12/' | | |
sed 's;^\(..\) \(..\) \(....\) \(..\) \(..\) \(..\);\3\2\1 \4\5\6;' > danger_log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment