From: Bowie Bailey > > ------------------------------------------------------- > if ( [ "$2" == '-l' ] ) > then > find /var/spool/courier/msgs -type f -name 'C*' | xargs grep -l $1 > elif ( [ "$2" == '-c' ] ) > then > find /var/spool/courier/msgs -type f -name 'C*' | xargs > grep -l $1 | > xargs cat | more > else > find /var/spool/courier/msgs -type f -name 'D*' | xargs > grep -l $1 | > xargs cat | more > fi > ------------------------------------------------------- >
Watch the folding. Each section of the if-then-elif-else should contain one long line starting with "find". Bowie ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
