ubuntu:bash:quotes
Differences
This shows you the differences between two versions of the page.
ubuntu:bash:quotes [2019/11/29 10:52] – created peter | ubuntu:bash:quotes [2019/12/07 01:42] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - Bash - Quotes ====== | ||
- | |||
- | There are 3 types of quotes. | ||
- | |||
- | < | ||
- | ' a.k.a. single quotes - Everything wrapped in this quote won't be changed (Strong quotes) | ||
- | |||
- | " a.k.a. double quotes - Quotes that doesn' | ||
- | |||
- | ` a.k.a. back quotes - To execute command | ||
- | </ | ||
- | |||
- | Examples of quotes usage (top lines are commands and the output are displayed below the commands): | ||
- | |||
- | ---- | ||
- | |||
- | Example of using back quotes within single quotes. | ||
- | |||
- | <code bash> | ||
- | echo 'Today is `date`' | ||
- | |||
- | Today is `date` | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | Example of using back quotes within double quotes. | ||
- | |||
- | <code bash> | ||
- | echo "Today is `date`" | ||
- | |||
- | Today is Mon May 26 09:42:50 MYT 2008 | ||
- | </ | ||
ubuntu/bash/quotes.1575024751.txt.gz · Last modified: 2020/07/15 09:30 (external edit)