[HPADM] Sed / regex Question

From: Geremy.E.Cohen@WellsFargo.COM
Date: Fri Aug 09 2002 - 14:57:43 EDT


Hello All-

How would I escape the '/' in a sed statement?

For example, lets say I have the string <FOOBAR>, and I want to replace it
with </H2>.

I cant seem to escape the '/' char with '\', for example:

sed s/\<FOOBAR\>/\/\<H2\>/g

throws an error. Any ideas?

Thanks,
geremy

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:17 EDT