[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] SED question
- Subject: [ale] SED question
- From: josh.freeman at arch.gatech.edu (Josh Freeman)
- Date: 19 Mar 2002 13:38:17 -0500
Hello ALE'ers
I've got to batch process some HTML files, and I need to make
substitutions of the form
<h2> => foo
</h2> => bar
The expression:
sed s/\<[hH]2\>/foo/g
takes care of the first one, but I have yet to get an expression to work
for the second case, I would expect:
sed s/\<\\[hH]2\>/bar/g to return bar, but it returns <\h2> instead.
Any ideas. I assume that I am not escaping the '\' correctly, but I
haven't an idea how to do it.
Thanks,
Josh
--
Josh Freeman
Technical Manager
Center for Assistive Technology and Environmental Access
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.