Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!rutgers!njin!princeton!phoenix!bernsten From: bernsten@phoenix.Princeton.EDU (Dan Bernstein) Newsgroups: comp.unix.questions Subject: Re: Regular Expression delimiters Message-ID: <7716@phoenix.Princeton.EDU> Date: 13 Apr 89 17:33:29 GMT References: <993@n8emr.UUCP> <6710@bsu-cs.bsu.edu> <16874@mimsy.UUCP> <7702@phoenix.Princeton.EDU> Reply-To: bernsten@phoenix.Princeton.EDU (Dan Bernstein) Distribution: usa Organization: Hmph. Lines: 18 In article <7702@phoenix.Princeton.EDU> I write: > It wouldn't take much work to make a `literal' alias, so I'll now put my money where my mouth is. alias literal 'sed '\''s-\([\.\*\[\\\^\$\/]\)-\\\1-g'\' alias show 'echo "$\!:1"' The acid test, of course, is show ans | sed "s/`show ans | literal`/xxx/g" which, no matter what $ans is, will output xxx. If your csh doesn't have a working builtin echo, you'll have to rewrite show along the lines of my previous article. ---Dan Bernstein, bernsten@phoenix.princeton.edu