Hi,
have a look at perldoc perlrun to see some ways of calling Perl to do some very convenient tasks on the command line.
In your case I'm pretty sure you can do your annoying job with:
perl -pi.bak -e 's{&}{&}g; s{&amp;}{&}g; s{\s>\s}{>}g; +s{\s<\s}{<}g;' *.xml
Regards
McA
In reply to Re: search and replace strings in different files in a directory
by McA
in thread search and replace strings in different files in a directory
by PitifulProgrammer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |