sandbox:shell-scripting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
shell-scripting [2018/06/27 12:07] – dreiggy | shell-scripting [2018/06/27 12:58] – dreiggy | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Shell scripting ====== | ====== Shell scripting ====== | ||
Here will be some useful examples and snippet | Here will be some useful examples and snippet | ||
- | |||
- | ===== Debug scripts ===== | ||
- | |||
- | <code bash> | ||
- | # sh -x some-script-name.sh | ||
- | </ | ||
===== Links ===== | ===== Links ===== | ||
Line 14: | Line 8: | ||
* Prevent CRON from overlapping: | * Prevent CRON from overlapping: | ||
* bash colors: https:// | * bash colors: https:// | ||
+ | |||
+ | ===== Debug scripts ===== | ||
+ | |||
+ | <code bash> | ||
+ | # sh -x some-script-name.sh | ||
+ | </ | ||
+ | |||
+ | ===== Differences between single and double quotes ===== | ||
+ | |||
+ | Single quotes won't interpolate anything, but double quotes will. For example: variables, backticks, certain \ escapes, etc. | ||
+ | |||
+ | <code bash> | ||
+ | $ echo " | ||
+ | upg | ||
+ | $ echo ' | ||
+ | $(echo " | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ |
sandbox/shell-scripting.txt · Last modified: 2019/09/17 21:47 by dreiggy