Fear and loathing

for i in $(find -name *.xml); do (cat $i | (echo $i; grep -6 \”no)); (cat $i | (grep -6 \”error));done

Why am I parsing xml with a shell script? Because it has to be done *right now*, apparently, without time to produce a more elegant xml-based solution. So instead I treat it like the text that it is, and digest it into a tractable form. Such is the life of 300 megabyte piles of output logs. Regardless, I’m proud to have generated the above.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>