- Timestamp:
- Sep 8, 2009, 12:54:55 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/fedora/config/etc/httpd/statistics_log_mitonly.sh
r1315 r1316 1 1 #!/bin/sh 2 awk '/^18\./ && ! /^18.181/ { print $2; fflush() }' >> /var/log/httpd/statistics_log 2 perl -ne 'BEGIN { $| = 1 } 3 next unless /^18\./; 4 next if /^18\.181\./; 5 chomp; split; 6 if ($_[1] eq "scripts.mit.edu" && $_[2] =~ m|/(~[^/]+)/|) { 7 print "$1\n"; 8 } else { 9 print "$_[1]\n"; 10 }' >> /var/log/httpd/statistics_log 11 #awk '/^18\./ && ! /^18.181/ { print $2; fflush() }' >> /var/log/httpd/statistics_log
Note: See TracChangeset
for help on using the changeset viewer.