x='test $2 3.jpeg'x=$(printf '%q' "$x")echo $x
Standard input is empty
test\ \$2\ 3.jpeg
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!