echo with single quote, double quote and back quote

by RameshKumar 2010-01-23 16:00:48


More about Quotes

There are three types of quotes

" i.e. Double Quotes
' i.e. Single quotes
` i.e. Back quote

1. "Double Quotes" - Anything enclose in double quotes removed meaning of that characters (except and $).
2. 'Single quotes' - Enclosed in single quotes remains unchanged.
3. `Back quote` - To execute command.

Example:

echo "hiox"
hiox

[localhost shl]$ echo 'hiox'
hiox

[localhost shl]$ echo `date`
Sat Jan 23 16:02:23 IST 2010

Tagged in:

979
like
0
dislike
0
mail
flag

You must LOGIN to add comments