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...
sed
doesn't really have to do anything with formatting, id is a (primarily line-oriented) Stream EDitor.