On 26/5/2006, at 23:57, John Tsombakos wrote:
[...] I'd like to be able to search and remove the stupid, useless <o:p></o:p> tags that are left over. Just have to figure out how to take the output of the tidy command then do a text replace on it (Ruby gsub?)
Change the last line (which already contains ‘fi’) to:
fi|perl -pe 's/<o:p></o:p>//g'
I think that should do it.