Skip to content

Instantly share code, notes, and snippets.

@rcmdnk
Last active November 11, 2018 03:43
Show Gist options
  • Save rcmdnk/5213200 to your computer and use it in GitHub Desktop.
Save rcmdnk/5213200 to your computer and use it in GitHub Desktop.
#!/bin/bash
select command in "Hello World" "calculate 1+1" exit;do
if [ "$command" = "exit" ];then
exit
elif [ "$command" = "Hello World" ];then
echo $command
elif [ "$command" = "calculate 1+1" ];then
echo $((1+1))
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment