[ale] grrr, sed sucks!

Geoffrey esoteric at 3times25.net
Sun May 11 14:30:55 EDT 2003


Use single quotes around the sed arg and use the '\n' for a newline.

try this:

sed 's/></>\n</g'

Christopher Bergeron wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Can anyone tell my this won't work:
> 
> sed     "s/></>^M</g"    content.xml
> 
> I'm trying to convert every occurrence of  ><   (between xml tags) into  
>  >newline< in a staroffice content.xml file.  For some reason, it's not 
> working, and it's absolutely making me crazy.  I've check the FAQs, 
> docs, man page, etc... but I can't figure out what I'm doing wrong here.
> 
> Does anyone have any insight?  Did I miss something obvious?
> 
> Thanks again,
> CB
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQE+vXbVTKCy0t3zQgURAsaoAJ4/5EkERFF+2KCsGwua5GI+XPJNCQCeMM1n
> RNRKmJb5bi/LDzn/oodxZzI=
> =7ZYe
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 
> 

-- 
Until later: Geoffrey		esoteric at 3times25.net

The latest, most widespread virus?  Microsoft end user agreement.
Think about it...

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





More information about the Ale mailing list