Dev Tools

Shell Escape (Bash)

Escape a string for safe use in a Bash shell command.

Input
This tool helps you quote *data* for shell commands. It is not a security boundary.
Single-quoted (recommended)
'Hello it'"'"'s me; $(whoami)'
Double-quoted
"Hello it's me; \$(whoami)"
Was this page helpful?

Related tools