SyntaxFix
Write A Post
Hire A Developer
Questions
In Bash:
printf "%q" "hello\world" | someprog
for example:
printf "%q" "hello\world" hello\\world
This could be used through variables too:
printf -v var "%q\n" "hello\world" echo "$var" hello\\world