|
|
|
|
|
Your Unix shell (The program that takes your commands) is a powerful tool. One of its greatest strengths is its ability to use scripts. Anything you can do by typing in commands one by one can be done in a script. You can use them to automate tasks that you need to preform often, or you can use them to create programs that work for you.
Save your file and quit, and make it executable by typing chmod (filename) -u -x+ . Then simply execute your file, for example by typing ./(filename) . You should see on your screen, here are some files for you, $USER, followed by a list of files. Remember that you can use any command in scripts that you can in normal UNIX use. So you can simply save yourself time in doing many commands. For example, one common use of shell scripts is to create an internet dialer that goes through all of the tedious commands involved in dialing an ISP. This guide was not meant to show you all of the programming tools available with shell scripting, there are several guides on the internet for that. This is simply supposed to show what a shell script can do and how easy it is to implement one. Go To Page: 1
The copyright of the article Simple Scripting in Linux/Unix is owned by . Permission to republish Simple Scripting in print or online must be granted by the author in writing.
|
|
|
|