Skip to content

Instantly share code, notes, and snippets.

bash cheatsheet

variables

var=2       # numeric value assignation
var="text"  # text value assignation
$var        # content of var
${var}      # content of var
${#var}     # length of var
set         # display list of set variables