#!/bin/csh -f # Script to grep the acclog_https. Useful as: # ssh remote_host acclog_https_grep abc # which sends only the matched lines across the wire, as opposed to: # ssh remote_host acclog_https | grep abc # which sends all lines across the wire and filters locally # Note: Use "$*", not $*:q, or multiple args and multi-word args don't work. # If they're not all in one string, words beyond the first are # treated as filename args to grep, not the string to be searched. acclog_https | grep -i --color "$*"