Hi all,
I am new to tcl and have a question..
I have the followwing txt file:
| text1 | 34.540000 5.1800000 | 0.281900 |
| text2 | 69.230000 7.9100000 | 0.022220 |
and continue...
my question is:
i would like to:
1. sort the file by the second column..
2. i would like to add the file a header, somting like:
+-------+-----------------+---------+
| Name | Number1 Number2 | Number3 |
+-------+-----------------+---------+
3. how can i show the numbers in the second column only 2 digits after the numberical dot?
thanks alot!
I am new to tcl and have a question..
I have the followwing txt file:
| text1 | 34.540000 5.1800000 | 0.281900 |
| text2 | 69.230000 7.9100000 | 0.022220 |
and continue...
my question is:
i would like to:
1. sort the file by the second column..
2. i would like to add the file a header, somting like:
+-------+-----------------+---------+
| Name | Number1 Number2 | Number3 |
+-------+-----------------+---------+
3. how can i show the numbers in the second column only 2 digits after the numberical dot?
thanks alot!