Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!RODAN.ACS.SYR.EDU!jdpeek From: jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek) Newsgroups: comp.unix.questions Subject: Re^2: Regular Expression delimiters Message-ID: <8904172332.AA04697@rodan.acs.syr.edu> Date: 18 Apr 89 00:31:59 GMT References: <993@n8emr.UUCP> <6710@bsu-cs.bsu.edu> <16874@mimsy.UUCP> <2286@fireball.cs.vu.nl> Sender: daemon@ucbvax.BERKELEY.EDU Organization: Syracuse University; Syracuse, New York Lines: 15 In article <2286@fireball.cs.vu.nl> maart@cs.vu.nl (Maarten Litmaath) writes: > chris@mimsy.UUCP (Chris Torek) writes: > \(I also prefer a comma as the separator: sed 's,/,\\/,g'.) > > I use minus: sed 's-/-\\/-g' In cases like this, I use control characters (usually ^A or ^G). I try to put a comment line above -- so people will notice: # THE NEXT LINE USES CONTROL-A CHARACTERS AS THE sed SEPARATOR: sed "s^A${foo}^A${bar}^Ag" --Jerry Peek; Syracuse University Academic Computing Services; Syracuse, NY jdpeek@rodan.acs.syr.edu, SUNRIS::JDPEEK, jdpeek@suvm.bitnet +1 315 443-3995