Created
December 12, 2016 21:46
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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