Embed Quotes In A Shell Command Or String
This page answers questions like these:
- How to embed quotes in a shell command?
- How to embed quotes in a shell string?
- How to embed single quotes in a shell command?
- How to embed single quotes in a shell string?
- How to embed double quotes in a shell command?
- How to embed double quotes in a shell string?
Related Links:
Shell String Containing Spaces is Not Splitting
Bash String Manipulation
Shell (Bash/Bourne/Korn) Alias Taking Multiple Arguments
Embed Quotes in a Shell Command or String:
echo "Single quote ' in double quotes." -> Single quote ' in double quotes.
echo 'Double quote " in single quotes.' -> Double quote " in single quotes.
- Single quotes can appear anywhere in double quotes.
- Double quotes can appear anywhere in single quotes.
echo 'Single quote '"'"' in single quotes.' -> Single quote ' in single quotes.
echo "Double quote "'"'" in double quotes." -> Double quote " in double quotes.
- Put a single quote in single quoted string by temporarily ending the single quoted string, using double quotes, then going to single quotes again.
- Put a double quote in double quoted string by temporarily ending the double quoted string, using single quotes, then going to double quotes again.
Related Links:
Shell String Containing Spaces is Not Splitting
Bash String Manipulation
Shell (Bash/Bourne/Korn) Alias Taking Multiple Arguments
Home > Linux / Unix > Embed Quotes In A Shell Command Or String
Tags: embed quotes shell, single quote, double quote, single quotes, double quotes, shell, command, string, linux, unix, solaris, bsd, aix
Copyright © HelpDoco.com
shell-command-embed-quotes.txt
Linux-Unix/embed-quotes-in-shell-command-or-string.htm
1