Dear all,
I have a file call test.txt which has 2000 columns, 1000 rows. If I want to trim all the columns to 3 decimal places, how can I do it? I know how to use awk prinf to trim specic columns. But I don't know how to trim all the columns. Thank you.
data sample:
0.976004565 9.34567845 9.2345678 ...
2.345676879 4.68798909 2.5789090...
...
I tried this code below and I got all the numbers trimed but all the columns merged to one single column. Anyone any any idea how I can change the code?
You should make a very minor change as follows, though I don't know your complete requirement but as per your code I am trying to fix it, let me know how it goes.