I have a file that contains a 10 byte sequence number, followed by a 1 to 3 byte segment id. My file looks like this (without the single quotes):
'1234567890A'
'0987654321BB'
'1111111111CCC'
So, as you see, some records are 11 bytes in width, some are 12, and some are 13.
I want to use "sed", or something like it, to turn every record in this file into a fixed width of 13 bytes, inserting spaces where the data doesn't actually take up the entire 13 bytes. So the data returned will look like this (without the single quotes):
'1234567890A '
'0987654321BB '
'1111111111CCC'
Can anyone help me out here? Thanks once again...
'1234567890A'
'0987654321BB'
'1111111111CCC'
So, as you see, some records are 11 bytes in width, some are 12, and some are 13.
I want to use "sed", or something like it, to turn every record in this file into a fixed width of 13 bytes, inserting spaces where the data doesn't actually take up the entire 13 bytes. So the data returned will look like this (without the single quotes):
'1234567890A '
'0987654321BB '
'1111111111CCC'
Can anyone help me out here? Thanks once again...