Strings are typically delimited by quotes, which raises the problem of dealing with strings that include quotes.
Quoting is a common issue in shell scripting (a.k.a. shell-script). Here are some common problems:
- shell Why does my shell script choke on whitespace or other special characters?
- shell What is the difference between "...", '...', $'...', and $"..." quotes?
- shell Is there a way to get *actual* (uninterpreted) shell arguments in a function or script?
- shell Print a string including single quotes and other special characters
- shell Quoting / escaping / expansion issue in "command in a variable"
- bash Why does parameter expansion with spaces without quotes work inside double brackets "[[" but not inside single brackets "["?
- sed What characters do I need to escape when using sed in a sh script?
- grep regex Use of quotes in GNU grep regular expressions
- options How do I delete a file whose name begins with "-" (hyphen a.k.a. dash or minus)?