Skip to content

Instantly share code, notes, and snippets.

@cjaoude
Created January 30, 2017 15:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjaoude/ad5e49ccdeb91f1ece23fa46e6dcebc5 to your computer and use it in GitHub Desktop.
Save cjaoude/ad5e49ccdeb91f1ece23fa46e6dcebc5 to your computer and use it in GitHub Desktop.
Bash, made easy:

Run commands, by condition:

A; B    Run A and then B, regardless of success of A
A && B  Run B if A succeeded
A || B  Run B if A failed
A &     Run A in background.



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment