script to generate BASH scripts

I create scripts on a day to day basis, and I eventually got bored of manually creating scripts from initial phase everytime, hence this master of scripts.

# BASH script to generate BASH scripts
# Created by Mpho Mphego
echo "What do you want to call your BASH script?"
echo "#!/bin/bash" | tee ~/tmp/$
echo "# Filename:$" | tee -a ~/tmp/$
echo "# The purpose of this script is to ..." | tee -a ~/tmp/$
echo "# Script written by Mpho Mphego Marion Island SANSA Engineer 2014-2015" | tee -a ~/tmp/$
sudo chmod +x ~/tmp/$
sudo ln -s ~/tmp/$ ~/bin/$
sudo chmod +x ~/bin/$
gedit ~/tmp/$

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s