Bash if: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * bash =Overview=") |
No edit summary |
||
Line 4: | Line 4: | ||
=Overview= | =Overview= | ||
<pre> | |||
if <command-that-returns-0-or-non-0>; then | |||
# | |||
# execute this is the command returned 0 | |||
# | |||
else | |||
# | |||
# execute this is the command returned non-0 | |||
# | |||
fi | |||
</pre> |
Revision as of 23:39, 4 September 2016
Internal
Overview
if <command-that-returns-0-or-non-0>; then # # execute this is the command returned 0 # else # # execute this is the command returned non-0 # fi