Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!chinacat!chip From: chip@chinacat.Lonestar.ORG (Chip Rosenthal) Newsgroups: news.newusers.questions Subject: Re: wanted: another macro for 'rn' Message-ID: <868@chinacat.Lonestar.ORG> Date: 11 Feb 90 19:04:21 GMT References: <15714@orstcs.CS.ORST.EDU> <862@chinacat.Lonestar.ORG> Organization: Unicom Systems Development, Austin (yay!) Lines: 17 In article <862@chinacat.Lonestar.ORG> I make an ass of myself: >How about this macro: > @= /%s/=\n Arrgh!! That does very strange things if the subject contains a slash. The following will handle it: @= /%`echo "%s" | sed -e 's|/|\\\\/|g'`/=\n Obviously this is going to be much slower. You could compromise with something using %( ? : ) which would handle a single slash -- that wouldn't involve the shell escape. Just don't use it to search a thread with a subject something like "need TCP/IP for Apple ///". -- Chip Rosenthal | Yes, you're a happy man and you're chip@chinacat.Lonestar.ORG | a lucky man, but are you a smart Unicom Systems Development, 512-482-8260 | man? -David Bromberg