inserting spaces into specific locations
Posted: Fri May 17, 2013 8:59 pm
Hi,
I have a file with variable length records.
I want to adjust each record to make them all the same length
I'm trying to figure out is to how to insert spaces at the location infront of the last value on each line
xxxxxxx___yyyyy___zzz.zzz
xxxxxxx___yyyyyyyyyy___zzzz.zzz
xxxxxxx___yyyyyyyy___zzzzz.zzz
xxxxxxx___yyyyyyyyyyyyy___zzzz.zz
xxxxxxx___yyyyy___________zzz.zzz
xxxxxxx___yyyyyyyyyy______zzzz.zzz
xxxxxxx___yyyyyyyy________zzzzz.zzz
xxxxxxx___yyyyyyyyyyyyy___zzzz.zz
( underscores represent spaces )
Thanks in advance:)
I have a file with variable length records.
I want to adjust each record to make them all the same length
I'm trying to figure out is to how to insert spaces at the location infront of the last value on each line
xxxxxxx___yyyyy___zzz.zzz
xxxxxxx___yyyyyyyyyy___zzzz.zzz
xxxxxxx___yyyyyyyy___zzzzz.zzz
xxxxxxx___yyyyyyyyyyyyy___zzzz.zz
xxxxxxx___yyyyy___________zzz.zzz
xxxxxxx___yyyyyyyyyy______zzzz.zzz
xxxxxxx___yyyyyyyy________zzzzz.zzz
xxxxxxx___yyyyyyyyyyyyy___zzzz.zz
( underscores represent spaces )
Thanks in advance:)