I have the following awk command which returns multiple decimal places:
nawk '$5 > 90 {$2=$2/1024;$3=$3/1024;$4=$4/1024;printf("%-20s %-9s %-9s %-9s %-10s %-10s\n",$1,$2,$3,$4,$5,$6)}' file
How do I go about making the output display 2 decimal places? No decimal places?
Any help would be greatly appreciated.
Thanks,
John
nawk '$5 > 90 {$2=$2/1024;$3=$3/1024;$4=$4/1024;printf("%-20s %-9s %-9s %-9s %-10s %-10s\n",$1,$2,$3,$4,$5,$6)}' file
How do I go about making the output display 2 decimal places? No decimal places?
Any help would be greatly appreciated.
Thanks,
John