I just made a post in your other thread about the use of
printf. Please learn how to use it correctly.
Also note that the printf in awk has a slightly different syntax from bash's version (arguments are separated by commas), and is capable of doing more (particularly when working with numbers, due to the full floating-point arithmetic engine). awk's
print command is pretty much equal to bash's
echo.
Speaking of which, I should've mentioned before, you can also use
echo -n in bash to print a simple string without a newline (equivalent to "
printf '%s'").
Edit: see here for details on gawk's version of printf.
http://www.gnu.org/software/gawk/man...tf.html#Printf