echo "23.54" | awk '
function round(A) {
return int( A + 0.5 )
}
{
printf("%d\n",round($1));
}'> > > > > >
awk: syntax error near line 2
awk: bailing out near line 2
Paste your code inside [ code] [ /code]. Remove space after [.
My first guess is that you are running on Solaris and that you should be using nawk rather than awk.