Hello all,
I know this is a simple question, however I haven't used awk in over a year and am having memory issues... (must be that I turned 30 last week).
Anyway, I want to take a txt file with 8 fields on one line and add line breaks every two fields. For example the file looks like this:
0 1538 10 1539 20 1537 30 1533
40 1529 50 1523 60 1519 70 1516
80 1513 90 1510 100 1509 110 1508
120 1506 130 1505 140 1505 150 1504
I want to rearrange the fields to look like this:
0 1538
10 1539
20 1537
30 1533
40 1529
50 1523 ... etc
Any help will be greatly appreciated!
-J
I know this is a simple question, however I haven't used awk in over a year and am having memory issues... (must be that I turned 30 last week).
Anyway, I want to take a txt file with 8 fields on one line and add line breaks every two fields. For example the file looks like this:
0 1538 10 1539 20 1537 30 1533
40 1529 50 1523 60 1519 70 1516
80 1513 90 1510 100 1509 110 1508
120 1506 130 1505 140 1505 150 1504
I want to rearrange the fields to look like this:
0 1538
10 1539
20 1537
30 1533
40 1529
50 1523 ... etc
Any help will be greatly appreciated!
-J