I need to pass binary data to a bash program that accepts command line arguments. Is there a way to do this?
It\'s a program that accepts one argument:
Use the $'' quote style:
$''
script $'\x02\xc5\xd8'
Test:
printf $'\x02\xc5\xd8' | hexdump -C 00000000 02 c5 d8