in reply to File re-formatting

Yes, Perl would be right choice.