Replace literal \n with newline

David Bendit DarkElf109 at ibendit.com
Tue May 27 12:14:28 MST 2008


Hey there,

I'm trying to pull useful information out of a nessus report file (which 
is just XML), and everything works fine except the informational data 
portions. They're stored with string literal \n, and I can't figure out 
an easy way to convert those to actual newlines. With tr, the best I can 
get is removing all the n's, and I think it may be because bash is 
confused at the order of escaping, if that makes any sense. Any help is 
appreciated.

-David Bendit

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20080527/95813425/attachment.pgp 


More information about the PLUG-discuss mailing list