Skip to content

Instantly share code, notes, and snippets.

@sheilambadi
Last active January 29, 2021 16:14
Show Gist options
  • Save sheilambadi/841df29beca8ab6ec9bb9e100eb6252b to your computer and use it in GitHub Desktop.
Save sheilambadi/841df29beca8ab6ec9bb9e100eb6252b to your computer and use it in GitHub Desktop.
If then else statement in bash
if [ logical expression ]; then
statement 1
statement 2
else
statement 3
statement 4
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment