Skip to content

Instantly share code, notes, and snippets.

@cfeduke
Created June 11, 2013 13:41
Show Gist options
  • Select an option

  • Save cfeduke/5756928 to your computer and use it in GitHub Desktop.

Select an option

Save cfeduke/5756928 to your computer and use it in GitHub Desktop.
bash default argument
# var is set to CLI parameter 1 or "value" if not passed
VAR=${1-value}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment