How to manipulate first column and reverse the line order in third and fourth column as follws?
For example i have a original file like this:
file1
0.00000000E+000 -1.17555359E-001 0.00000000E+000
2.00000000E-002 -1.17555359E-001 0.00000000E+000
4.00000000E-002 -1.17639683E-001 0.00000000E+000
6.00000000E-002 -1.17655106E-001 0.00000000E+000
8.00000000E-002 -1.17603991E-001 0.00000000E+000
1.00000000E-001 -1.17488978E-001 0.00000000E+000
I want to
-manipulate first column
-reverse the line order in third and fourth column (I can already do that:
http://www.unix.com/shell-programming-scripting/35832-reversing-order-lines-file-4.html
)
-remove last line.
-->file2:
1.20000000E-001 -1.17603991E-001 0.00000000E+000
1.40000000E-001 -1.17655106E-001 0.00000000E+000
1.60000000E-001 -1.17639683E-001 0.00000000E+000
1.80000000E-001 -1.17555359E-001 0.00000000E+000
2.00000000E-001 -1.17555359E-001 0.00000000E+000
Finally I 'm going to merge these files.
---------- Post updated 30-07-09 at 11:13 AM ---------- Previous update was 29-07-09 at 05:08 PM ----------
What I wanted most was to know this:
Other questions are extra.