View Single Post
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#3
Originally Posted by debernardis View Post
Your script is:
Code:
#!/bin/sh
echo "Thanks for using this script. Copyright 2011 Pang Zi Yang"
echo "This script enables you to change .sh scripts into commands for easy usage"
find /home/user/MyDocs/ -name \*.sh
echo "Please enter name of the script you want to convert into command"
echo "Don't need to enter /home/user/MyDocs/"
read scriptlocation
echo "Please enter the name of the command"
read commandname
chmod a+x /home/user/MyDocs/$scriptlocation | echo "Please hold on"
cp /home/user/MyDocs/$scriptlocation /usr/bin/$commandname | echo "Done"
# cmdmaker.sh
# 
#
# Created by Pang Zi Yang on 1/19/11.
# Copyright 2011 Pang. All rights reserved.
Well, the Copyright note is funny. You are reserving your rights on copying a file from a directory to another and changing the permissions, aren't you?
Expect a visit shortly from some thugs in Micro$oft uniforms
escorting a flock of lawyers....
__________________
Three n900s: One for stable working platform,
One for development testing Chopping Onions
One for saltwater immersion power testing resurrected ! parts scavenging

My Mods for Wonko's Advanced Clock Plugin:
ISO8601 clock mod and Momental_IST clock mod

Printing your Email with the N900