15.3. Single quotes

The single quote is very similar to the double quote except it tells the shell to ignore any type of value evaluation; in other words, to treat everything inside the quotes as if it was disabling its special meaning – a case of what you type between the single quotes is what you get. Using the sample example as in the double quote:

						$ GIRL='girl' 
$ echo "The '$GIRL' did well" 
The 'girl' did well
					

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.