Bash Quoting
Aug 27, 2009, 18:32 (2 Talkback[s])
(Other stories by Mitch Frazier)
WEBINAR:
On-Demand
How to Help Your Business Become an AI Early Adopter
"he basics of quoting are simple, use single or double quotes
when a value contains spaces:
a="hello world"
a='hello world'
"But single and double quotes are different. Single quotes don't
support any kind of variable substitution or escaping of special
characters inside the quoted string. Double quotes, on the other
hand, support both:"
Complete
Story
Related Stories:
- Reading Multiple Files with Bash(Aug 22, 2009)
- 5 Simple Bash Tips, Part III(Aug 13, 2009)
- Bash Shell Course: Text Editors(Aug 12, 2009)
- Bash, in Color(Aug 03, 2009)
- Create a Twitter Info Server with Bash(Jul 25, 2009)
- Course: Bash Shell Basics(Jul 20, 2009)
- 5 Bash Tips, Part II(Jul 07, 2009)
- Asking a Yes/No Question from a Bash Script(Jul 01, 2009)
- 6 Bash Productivity Tips(Jun 29, 2009)
- Creating a Bash Spinner(Jun 15, 2009)