From: Ryszard Musialik (ryszard_musialik@gryfia.com.pl)
Date: Mon Aug 12 2002 - 01:28:14 EDT
You can write:
sed s%<FOOBAR>%</H2>%g'
Ryszard
----- Original Message -----
From: <Geremy.E.Cohen@WellsFargo.COM>
To: <hpux-admin@DutchWorks.nl>
Sent: Friday, August 09, 2002 8:57 PM
Subject: [HPADM] Sed / regex Question
> 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