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...
any command that can format html or xml from shell?
text processing;sed;html
If its something related to pretty printing of file in xml aligned format, xmllint as suggested by @warl0ck is nice & here is what I tried & see:$cat some.xml<myRoot> <my-element><my-subelem myAttr=value/></my-element></myRoot>$ xmllint --format some.xml<?xml version=1.0?><myRoot>  <my-element>    <my-subelem myAttr=value/>  </my-element></myRoot>