User Tools

Site Tools


Shell scripting

Here will be some useful examples and snippet

Debug scripts

# sh -x

Differences between single and double quotes

Single quotes won't interpolate anything, but double quotes will. For example: variables, backticks, certain \ escapes, etc.

$ echo "$(echo "upg")"
$ echo '$(echo "upg")'
$(echo "upg")
sandbox/shell-scripting.txt · Last modified: 2019/09/17 21:47 by dreiggy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki