Quote:
`echo grep King MagnaCarta.txt`
You dont have single quotes there, you have back quotes (the key to the left of the number 1 key). Back quotes allow command substitution, these are the
`. Single quotes,
\' do not allow command substitution nor do they allow interpolation. These are the 'what you see is what you get quotes'.
Example:
Single Quotes:
echo 'This Statement Will Print As it is, without $SHELL interpolation'
prints the following:
This Statement Will Print As it is, without $SHELL interpolation
Back Quotes
echo " `whoami` Is A Lion, Hear Him Roar!"
.........^back qu^otes
prints the following:
Google Is A Lion, Hear Him Roar!