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
$ cat ACCESS_lOG | awk '{bytes = bytes + $10} END {print bytes/1048576}' |
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
#----------------------------------------------------------------------------------------------- | |
# Urchin Logformat Map - Custom Format | |
# | |
# Urchin uses this file to determine which fields are contained in the log file. | |
# The file contains name/value pairs which affect the parsing of the data fields. | |
# The log file can contain lines with up to two different formats which are | |
# denoted as Primary and Secondary in the name/value pairs below. | |
# | |
# Lines beginning with a '#' are ignored. Fields in this file are separated by | |
# whitespace (spaces or tabs). Any fields that have whitespace in them must be |
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
$ find ./20120831_testdir -type f -print0 | xargs -0 stat --format='%a %N' | sed -e "s/[\`']//g" | |
755 ./20120831_testdir/2009032/httpdconf.pl | |
777 ./20120831_testdir/showmod.sh |
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
## SET ENV "UA" ## | |
### DEFAULT | |
RewriteRule .* - [E=UA:default] | |
### PC | |
RewriteCond %{HTTP_USER_AGENT} Windows [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} Mac\sOS\sX [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} Macintosh [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} Mac_ [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} Linux [NC,OR] |
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
$ cat ACCESS_LOG | awk '$4 >= "[29/Jan/2012:12:00:00" && $4 < "[29/Jan/2012:13:00:00"' |
NewerOlder