[ale] grrr, sed sucks!

Danny Cox danscox at mindspring.com
Sun May 11 13:01:32 EDT 2003


CB,

On Sat, 2003-05-10 at 18:01, Christopher Bergeron wrote:
> Can anyone tell my this won't work:
> 
> sed     "s/></>^M</g"    content.xml

	sed unfortunatly expects a literal newline.  It doesn't know the '^M'
or '\015' escape sequences.  You could try:

	sed 's/<>/>
</g

and see what happens, or punt, and use something else like Perl, Python,
Awk, or C (shudder) ;-).

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list