Equal Amount of Spaces Between Columns
Posted: Wed Feb 06, 2008 1:27 am
Hello, I have a file with (5) columns.
I need to have 2 spaces separating the first 4 columns *except* when the first column has only 11 characters, in this case I need 3 spaces separating the 1st two columns.
When the first column has 12 characters reg. 2 spaces is required.
A correct example below:
1FTNE24W96D 112007 ON R 1
1FTNFR21597E 112007 ON R 1
1FTNE24W46D 112007 ON R 1
1FTNE24W96D 112007 ON R 1
1FTNFR21597E 112007 ON R 1
1FTNFR21598E 112007 ON R 1
Is there an easy way for me to do this?
Thank you
Stephane T.O
I need to have 2 spaces separating the first 4 columns *except* when the first column has only 11 characters, in this case I need 3 spaces separating the 1st two columns.
When the first column has 12 characters reg. 2 spaces is required.
A correct example below:
1FTNE24W96D 112007 ON R 1
1FTNFR21597E 112007 ON R 1
1FTNE24W46D 112007 ON R 1
1FTNE24W96D 112007 ON R 1
1FTNFR21597E 112007 ON R 1
1FTNFR21598E 112007 ON R 1
Is there an easy way for me to do this?
Thank you
Stephane T.O