Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Bash if statement

if first-test-commands; then
  consequent-commands;
[elif more-test-commands; then
  more-consequents;]
[else alternate-consequents;]
fi
Source by www.shell-tips.com #
 
PREVIOUS NEXT
Tagged: #Bash #statement
ADD COMMENT
Topic
Name
8+6 =