O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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
					

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required