I've been messing about with this using Notepad++ and creating a macro to automate it. Think I'm getting there .