On Sun, Jul 05, 2009 at 11:07:23PM +0100, Penguin Lover Mick squawked: > > from Cacti forums): > > | grep -v NaN | grep '<row>' | tr e ' ' \ > > | awk {'print "Q"$2"qcq"$3"qcq"$9"Q"'} \ > > | tr Q '"' | tr c ',' | tr q '"'" > > > > Haven't tested it, but looks like it should work. > > Hmm, I don't think it gets anywhere: > ======================================= > cat test.xml | grep -v NaN | grep '<row>' | tr e ' ' | awk > {'print "Q"$2"qcq"$3"qcq"$9"Q"'} | tr Q '"' | tr c ',' | tr q '"'" > test.csv > > > ======================================= > > It just sits there at the > cursor. I think it needs something more to it, > or
Looks like a syntax error with improperly nested quotations marks. The last command in the sequence, which reads tr q '"'" try replacing that with tr q '"' (remove the final double quote) W -- "`Eddies,' said Ford, `in the space-time continuum.' `Ah,' nodded Arthur, `is he? Is he?'" - Arthur failing in his first lesson of galactic physics in four years. Sortir en Pantoufles: up 941 days, 15:00