Differences between revisions 1 and 2
Revision 1 as of 2023-01-20 17:25:07
Size: 152
Comment:
Revision 2 as of 2023-01-20 17:27:43
Size: 317
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
{{{
case $INPUT_STRING in
  y)
    echo "Proceeding..."
    ;;
  n)
    echo "Quitting..."
    ;;
  *)
    echo "Please enter y or n"
    ;;
esac
}}}

Shell Logic


Conditional Logic


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)