Awk Question

How I can rid of the following presentation du -sk /u*/oradata/TEST/*.dbf |awk '{print total+=$1} 1.28003e+06
4.35109e+06
4.36134e+06
4.4535e+06
5.47752e+06
5.48777e+06
7.52554e+06
7.73036e+06
9.06158e+06
:confused: thank you

Use printf to format the output
to

'{ printf("%15.0f\n", total+=$1) }'

If you want to chang the numeric output style, use printf statement
You can do something like this (not tested) :

du -sk /u*/oradata/TEST/*.dbf | \
awk '{total+=$1; printf("%d\n,total)}'

If you want to only print the final total :

du -sk /u*/oradata/TEST/*.dbf | \
awk '{total+=$1} END {printf("%d\n",total)}'

Jean-Pierre.

Thank you for promt reply. Works wonders.