#!/bin/csh -f # Script to grep the acclog_https. Useful as: # ssh remote_host acclog_https_grep_404 # which sends only the matched lines across the wire, as opposed to: # ssh remote_host acclog_https | grep " 404 " # which sends all lines across the wire and filters locally # Also, preserves the spaces around the 404 which are lost by: # ssh remote_host acclog_https_grep " 404 " acclog_https | grep --color " 404 "