Why is printf better than echo?
Why is printf better than echo? – Unix & Linux Stack Exchange
I don’t always like the “epic” answers on StackExchange, but this one was really good. I hadn’t even realized how bad echo
was for unfiltered input. Next time I shell script, I’ll keep printf
in mind.