I am not a UNIX guy but understand enough to gin up small scripts here and there except for this one where I may personally be not able to devote enough time.
I have about 2000 files in a directory on which the following need to be done:
- Each file has about 3000 records but all are on one line of each file separated by Ctrl M newline character. These need to be separated out.
- Each file has corresponding date it was generated in the first line starting from 8th char to 14th char. This date needs to be used to rename the file to XXX_YYYYMMDD_AAA.txt