Problem: The fields in my flat file are not tab separated. I would like to add tabs (or a space) in between the fields so that it can be processed later.
Here's the catch: The file is large so I do not want to create any intermediary files. So I assume no cutting-pasting – anyway as efficiently as possible.
Bonus points if you can get (read?) each field into a variable for use in a shell script. mrraia@cvs.com
Before:
D02101BOSTON
D05047HARTFORD
D05601WASHINGTON
D22168NEWTON
D02351WATERTOWN
After:
D 02101 BOSTON
D 05047 HARTFORD
D 05601 WASHINGTON
D 22168 NEWTON
D 02351 WATERTOWN
Here's the catch: The file is large so I do not want to create any intermediary files. So I assume no cutting-pasting – anyway as efficiently as possible.
Bonus points if you can get (read?) each field into a variable for use in a shell script. mrraia@cvs.com
Before:
D02101BOSTON
D05047HARTFORD
D05601WASHINGTON
D22168NEWTON
D02351WATERTOWN
After:
D 02101 BOSTON
D 05047 HARTFORD
D 05601 WASHINGTON
D 22168 NEWTON
D 02351 WATERTOWN