There must be something on the lines of sed?
Normally in sed you type something like:
echo day | sed s/day/night/
the shell prints "night".
Is there something that can take a file (containing xml/html) or an xml/html string and return the formatted result for me?
Ps: want to be able to use this from my editor...
seddoesn't really have to do anything with formatting, id is a (primarily line-oriented) Stream EDitor. – peterph Oct 8 '13 at 8:40