Files
developer-roadmap/roadmaps/shell-bash/content/strings@Sz2F519WqEhkKZE0NBveH.md
T
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

911 B

Strings in Bash

In Bash, strings are sequences of characters. They can be enclosed in single quotes ('...') or double quotes ("..."). Single quotes treat everything literally, meaning no variable substitution or command execution happens within them. Double quotes, on the other hand, allow for variable expansion and command substitution. Suppose you want to include a literal single quote within a single-quoted string. In that case, you'll need to escape it (usually by closing the single-quoted string, adding an escaped single quote, and then reopening the single-quoted string).

Visit the following resources to learn more: