Tag: if

  • Fundamental related of a bash builtin command named “if”

    ABOUT if Conditionals have many forms. The most basic form is: if expression then statement where ‘statement’ is only executed if ‘expression’ evaluates to true. ’21’ evaluates to true.xs TYPICAL SHELL EXPOSURE [bash] $if true; then echo "works" ; fi works $if false; then echo "works" ; fi $ [/bash] LINK https://stackoverflow.com/questions/16034749/if-elif-else-statement-issues-in-bash http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-6.html