Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site elsie.UUCP Path: utzoo!watmath!clyde!cbosgd!gatech!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.lang.c Subject: Re: Comments on this program please... Message-ID: <5308@elsie.UUCP> Date: Sat, 7-Dec-85 16:24:36 EST Article-I.D.: elsie.5308 Posted: Sat Dec 7 16:24:36 1985 Date-Received: Sun, 8-Dec-85 06:59:53 EST References: <2389@ukma.UUCP> <3090011@csd2.UUCP> <363@codas.UUCP> <2406@ukma.UUCP> <142@decvax.UUCP> Followup-To: net.unix Organization: NIH-LEC, Bethesda, MD Lines: 26 Summary: Watch your language! : Some things were not meant to be programmed in C, and this is one of them. : Followups to this article are being directed to net.unix. : N.B. no provision has been made here for occurrences of a slash in word. case $# in 0|1) echo "`basename $0`: usage is `basename $0` word file ..." 1>&2 exit 1 ;; esac word="$1" shift case $#$1 in 1-) exec sed "/$word/s//\\ &/g" ;; *) exec sed "/$word/s//\\ &/g" "$@" ;; esac -- UNIX is an AT&T Bell Laboratories trademark. Word is a Microsoft trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX and Elsie are Digital Equipment and Borden trademarks