5

Difference between printf and echo in bash

view full story
linux-howto

http://serverfault.com – What is the difference between the printf function in bash and the echo function? Specifically, running: echo "blah" >/dev/udp/localhost/8125 did not send the "blah" command to the server listening on 8125, whereas printf "blah" >/dev/udp/localhost/8125 sent the data. Does printf send an extra EOF at the end of its output? (HowTos)