I have a line that looks like this:
Jane likes math 13
My awk program:
Results:
Desired:
I was playing with the printf command but I can't get it to print both numbers and words out.
Jane likes math 13
My awk program:
Code:
awk '{print $1, $2, $3/14}'
Code:
Jane likes 0
Code:
Jane likes 0.21
I was playing with the printf command but I can't get it to print both numbers and words out.
Code:
# echo "40052.96 hello" |awk '{printf "%2.2f\n",$0}'
40052.96