summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerald <gerald@localhost>1998-08-15 00:50:45 +0000
committergerald <gerald@localhost>1998-08-15 00:50:45 +0000
commit456aa9aa63da32efeaf1e8416ab9270cea79f3a6 (patch)
treefa914e634a7546585e91a09a57db2ee80573947c
parente3afe124385090097663fa31b752db61dbf97835 (diff)
downloadmarkup-validator-456aa9aa63da32efeaf1e8416ab9270cea79f3a6.zip
markup-validator-456aa9aa63da32efeaf1e8416ab9270cea79f3a6.tar.gz
markup-validator-456aa9aa63da32efeaf1e8416ab9270cea79f3a6.tar.bz2
oops, forgot a line in the previous commit. Also, started antigrepping
for '-$'.
-rwxr-xr-xhttpd/cgi-bin/referers7
1 files changed, 4 insertions, 3 deletions
diff --git a/httpd/cgi-bin/referers b/httpd/cgi-bin/referers
index 6fa5c2c..c38f3d9 100755
--- a/httpd/cgi-bin/referers
+++ b/httpd/cgi-bin/referers
@@ -6,7 +6,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: referers,v 1.2 1998-08-15 00:48:13 gerald Exp $
+# $Id: referers,v 1.3 1998-08-15 00:50:45 gerald Exp $
LOG=/usr/local/apache/logs/complete_log; export LOG
@@ -28,10 +28,11 @@ Content-Type: text/html
EOHD
tail -50000 $LOG | grep -v image/gif | cut -d\" -f4 | sort | uniq -c | \
- sort -rn | head -100 | sed 's/\&/\&amp;/g; s/</\&lt;/g' | \
+ grep -v ' \-$' | sort -rn | head -100 | sed 's/\&/\&amp;/g; s/</\&lt;/g' | \
awk '{printf("<tr><td>%s</td><td><a href=\"%s\">%s</a></td></tr>\n",\
$1, $2, $2)}'
+cat <<EOHD
</table>
</pre>
@@ -39,7 +40,7 @@ tail -50000 $LOG | grep -v image/gif | cut -d\" -f4 | sort | uniq -c | \
<hr>
<address>
<a href="http://www.w3.org/People/Gerald/">Gerald Oskoboiny</a><br>
-\$Date: 1998-08-15 00:48:13 $ \
+\$Date: 1998-08-15 00:50:45 $ \
</address>
EOHD