shell scrpting - decreasing the decimals of numbers
Hi,
I have columns like this: Code:
Code:
-1.677004 -0.935580 -0.039685 |
probably with awk, using printf?
|
I hope there are three columns only.
Code:
cat /path/of/file | awk '{printf "%.6f %.6f %.6f\n", $1, $2, $3}' |
just please do not use cat: awk 'script' filename would be better
|
All times are GMT -5. The time now is 09:33 PM. |