The printf command offers well-defined behavior following the POSIX standard, which means it works the same way across shells and systems. Where echo often fails with escape sequences, printf handles ...
If you ever need to write a binary file from a traditional language like C, it isn’t all that hard to do. About the worst thing you might have to deal with is attempts to fake line endings across ...