views:

250

answers:

2

Hi, I have some source code files which came to me by an HTML output, so they're pretty unusable.

I have things like this:

%include "macros.mac"

Which should be:

%include "macros.mac"

Is there any script (sh, perl, batch, ...) to convert every file (there are about 200) to the appropriate characters? Characters include & lt;, & gt;, ... (I put an space in the middle so that it wont convert them to < and >.

Thank you, it's very appreciated.

A: 

you can try a tool like windows grep or textcrawler for this

hubbl
+1  A: 
ndim
Thank you, with I've made a script to exchange those characters (the ones I saw across few files). I hope there're no more characters like that.
Silvio González