Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!ucsd!orion.cf.uci.edu!paris.ics.uci.edu!siam.ics.uci.edu!schmidt From: schmidt@siam.ics.uci.edu (Doug Schmidt) Newsgroups: comp.unix.questions Subject: Re: quoting $ in the Csh Message-ID: <1485@paris.ics.uci.edu> Date: 13 Dec 88 22:30:07 GMT References: <1233@paris.ics.uci.edu> Sender: news@paris.ics.uci.edu Reply-To: Doug Schmidt Organization: University of California, Irvine - Dept of ICS Lines: 34 I'd like to thank everyone who responded to my question about quoting '$' in the csh. The following is a brief summary of all the different, valid responses from various folks ( the original problem was to create an alias that would replace all blank lines from a file with *no* blank lines ). ---------------------------------------- alias sqz "grep -v '^[ ^I]*"\$\' ---------------------------------------- alias sqz grep -v \'^\[\ \^I\]\*\$\' ---------------------------------------- alias sqz "grep -v '^[ ^I]*"\$"'" ---------------------------------------- alias sqz "grep -v '"'^[ ^I]*$'"'" ---------------------------------------- alias sqz 'grep -v \'^[ ^I]*$\'' ---------------------------------------- alias sqz "grep -v '^[ ^I]*"'$'"'" ---------------------------------------- alias sqz 'grep -v '\''^[ ^I]*$'\' ---------------------------------------- set d='$' alias sqz "grep -v '^[ ^I]*$d' \!*" ---------------------------------------- Rather diverse approaches, eh? ;-) thanks again. Doug Schmidt -- schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente. | Per me si va nell'eterno dolore. | Per me si va tra la perduta gente. | Lasciate ogni speranza o voi ch'entrate.