awk '{printf

December 1, 2010 at 09:08:26
Specs: solaris
How to incorporate %.3f\n in awk '{printf "%-10s %-15s %-25s %-20s %-20s\n",$1,$2,$3,$4/1024/1024,$5/1024/1024}' statement?

See More: awk {printf

Report •

#1
December 1, 2010 at 15:27:55
It seems straight forward enough to me:

echo ""|awk ' BEGIN { x=95.5677 }
{
printf("%.3f\n", x)
} '

Let me know if I am missing something and you have more information.


Report •
Related Solutions


Ask Question