Created
September 16, 2014 18:08
-
-
Save AdaFrame/d667400014a8260d9272 to your computer and use it in GitHub Desktop.
Bash script quick-starter
This file contains hidden or 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
#!/bin/bash | |
#CoffeeFrame | |
#Generates Bash script file, sets permissions and generates boilerplate | |
#INPUT name of desired script file, similar to touch. | |
SCRIPT="$1.sh" | |
CODER=$USER #Default | |
BOILERPLATE="#!/bin/bash\n#$CODER" | |
touch $SCRIPT | |
chmod 700 ./$SCRIPT | |
printf $BOILERPLATE > ./$SCRIPT | |
vim ./$SCRIPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment