Batch edit multiple text files with number sequence



I have 100's of .xml files (TV show based) that are named sequentially like so:


s07e01.xml s07e02.xml s07e03.xml s07e04.xml


The season and number of episodes (per season) differ.


In each file there are two lines:



<ID></ID>
<EpisodeNumber></EpisodeNumber>


Is it possible to batch edit these files adding the episode number to these two elements?


Thanks.


No comments:

Post a Comment