Differences between revisions 2 and 3
Revision 2 as of 2023-01-20 17:27:43
Size: 317
Comment:
Revision 3 as of 2023-01-20 17:28:27
Size: 394
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:

{{{
if [ TEST ]; then
  :
elif [ TEST ]; then
  :
else
  :
fi
}}}

Shell Logic


Conditional Logic

if [ TEST ]; then
  :
elif [ TEST ]; then
  :
else
  :
fi


Case Switching Logic

case $INPUT_STRING in
  y)
    echo "Proceeding..."
    ;;
  n)
    echo "Quitting..."
    ;;
  *)
    echo "Please enter y or n"
    ;;
esac


CategoryRicottone

Shell/Logic (last edited 2023-01-20 22:05:53 by DominicRicottone)