Hello Monks!
I am trying to edit an .xml file, the most relevant field of which is generally indicated by body="..."
In cases where the body content contains quotation marks, the format changes to body=' ...".." ...'
body= is always the sixth field, so that its content is preceded by five matched pairs of fieldname="..."
I would be grateful for any hints on how to harvest the body content.
Thank you,
Colin
p.s. my current awk one-liner fails to recognise the body='...' demarcator:
awk -F \" '{print $12}' < infile.xml > outfile.xmlIn reply to conditional input field separator? by Colin_R
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |