Skip to content

Instantly share code, notes, and snippets.

@jwo
Created December 12, 2016 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwo/872ae7b3a329e15f6550ee7c3ecbd304 to your computer and use it in GitHub Desktop.
Save jwo/872ae7b3a329e15f6550ee7c3ecbd304 to your computer and use it in GitHub Desktop.
A simple shell script which I used for productivity. Mostly, how can you ask a question on command line and then use later. NOTHING EARTH SHATTERING, just me saving for future.
select whichtype in "Authoring" "Semantics" "Syntax" "Forms" "Storage"; do
case $whichtype in
Authoring ) break;;
Semantics ) break;;
Syntax ) break;;
Forms ) break;;
Storage ) break;;
esac
done
echo "Which learning objective (number) would you like to write?: "
read input_variable
echo "You entered: $input_variable for $whichtype"
mkdir "$whichtype/terminal-$input_variable"
cd "$whichtype/terminal-$input_variable"
cp ./../../../../Learning\ Objective\ Template/*.md .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment