I have a file being produced by a program that has:
1 - some undesired characters at the start of the first line
2 - an extra CR character at the end of each line (each line terminates with CR + CR + LF)
I'm looking for either a BAT file or a windows shell script that can:
- strip the undesired characters from the start of first line
- strip one of the two CR characters from the end of each line
All lines will start with one or more numeric digits and should terminate with a single CR+LF combination.
It would be preferable if the existing file could be edited instead of reading and writing to a new file, although that's not strictly required.
Sample file attached!