cleaning up text from html in vi
OK, so I know this must be an easy sed/awk thing or something that is done every day;
what I find I am doing is selecting code from web pages and centre click inserting them into vi and what happens is that each line gets incrementally indented thus ruining the formatting of the conf file or whatever.
What I have done is a repeated dw on each line from back to front and all comes into line...
What is the best way to do this? Ie remove the leading tabs or clearspace that comes over when cutting and pasting text from html to plain text.
help appreciated
TIA
Will
|