Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!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: quoting $ in the Csh Message-ID: <1233@paris.ics.uci.edu> Date: 11 Dec 88 05:47:17 GMT Sender: news@paris.ics.uci.edu Reply-To: Doug Schmidt Organization: University of California, Irvine - Dept of ICS Lines: 28 References: Hi, I'm attempting to create an csh alias that will filter out all blank lines from a given file ( i.e., replace a sequence of blank lines with *no* blank lines ). The following grep argument does the trick: grep -v '^[ ^I]*$' # the ^I stands for tab However, when I attempt to make this a csh alias, e.g.: alias sqz "grep -v '^[ ^I]*$'" The cshell complains about ``variable syntax,'' since it appears to be attempting to expand $'. I've tried escaping the $, and that doesn't help. I've tried putting an extra space between the $ and ', but that screws up the regular expression. Does anyone know of a good method for getting this to work?! thanks, 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.