I want to pass raw bytes to a (C) program using the Linux Bash shell. I find that when I try to pass for example "\x00\xFF\xAB", the program receiving the input actually gets the ASCII character codes for the string, rather than interpret them as the raw bytes.
One way I've seen people accomplish this is by calling
python -c 'print("\x00\xFF\xAB")' and piping output to the program under test. Is there a way to do this without using Python by just using the Bash shell?