what r the diferences b/w printf and echo cmd.........
is use of printf better than echo? how...........
well, it depends on what you want to do
if you want just a basic display, echo is enough
printf allows you to display with formatting features. If you're
familiar with c, it's similar to c's printf
I'll give you some examples
# echo $i
# printf $i
# printf "%02d\n" $i
As you must have noticed with printf the
newline character '\n' is not automatically added as in