How to format decimal space using awk in linux
<p>original file :</p>

<pre><code>a|||a 2 0.111111
a|||book 1 0.0555556
a|||is 2 0.111111
</code></pre>

<p>now i need to control third columns with 6 decimal space </p>

<p>after i tried   <code>awk {'print $1,$2; printf "%.6f\t",$3'}</code>
but the output is not what I want </p>

<p>result :</p>

<pre><code>a|||a 2
0.111111        a|||book 1
0.055556        a|||is 2
</code></pre>

<p>that's weird , how can I do that will just modify third columns</p>