Advertisement
clockworkpc

CPC Bash Script Generator

May 5th, 2011
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. #!/bin/bash
  2. #cpcbash.sh
  3. #Released under a GPLv3 Licence by Clockwork PCT
  4.  
  5. #BASH script to generate BASH scripts
  6.  
  7. echo "What do you want to call your BASH script?"
  8. read RESPONSE
  9.  
  10. echo "#!/bin/bash" | tee ~/Documents/bin/$RESPONSE.sh
  11. echo "#Filename:$RESPONSE.sh" | tee -a ~/Documents/bin/$RESPONSE.sh
  12. echo "#Released under a GPLv3 Licence by Clockwork PC" | tee -a ~/Documents/bin/$RESPONSE.sh
  13.  
  14. sudo chmod +x ~/Documents/bin/$RESPONSE.sh
  15.  
  16. sudo ln -s ~/Documents/bin/$RESPONSE.sh /usr/local/bin/$RESPONSE.sh
  17. sudo chmod +x /usr/local/bin/$RESPONSE.sh
  18.  
  19. gedit ~/Documents/bin/$RESPONSE.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement