#!/bin/csh -f # split_at_chars # ------------------------------------------------------------------------- # Shell script to split lines at the specified char(s) # ------------------------------------------------------------------------- # Revision History: # $Log$ # ------------------------------------------------------------------------- if ($#argv < 1 || $1:q == "-h" || $1:q == "--help") then echo "Usage: $0:t char(s)" echo -n 'Example: echo $PATH | '; echo "$0:t :" echo -n 'Example: echo $CLASSPATH | '; echo "$0:t :" exit 1 endif tr "$1" "\n"