Posts filed under 'Shell Script Tutorial'

Shell Script Tutorial#3 Arguments


So, far we have learned the very basic about shell script. i) What we script is what we were to type. And, ii) how to use variables in shell script. In this chapter, the subject is using arguments. It will rely heavily on the use of variable. So, I’ll do a little review for you…

Lets imgine we want to extend our hello world script so that it takes name as the argument and the shell script will echo “Hello, xxx” where xxx is the name you entered as the argument. That is we want a program that does the foll
owing job…

Continue Reading Add comment July 11th, 2005

Shell Script Tutorial 2


Hello World, Variables
Last time, we covered the most important basic for shell scripting, that is “what you script is what you type to terminal”+(with some exceptions that you don’t nedd to care). This time we will cover the traditional helloworld program and variables.

Lets first learn how to write a hello world program in shell script, open your favourite text editor and create a new file call helloWorld.sh which contains the following

Continue Reading Add comment July 10th, 2005

Shell Script Tutorial by Examples 1


First lesson, what you script is what you were to type to terminal.(with some exception that you don’t need to care)

Shell scripting is a nice Unix(linux, OSX, unix etc.) feature. It allows us to use the command line interface to its full potential. In this article, I’ll attempt to to teach you shell scripting from the basic by giving out examples and learn from it.

In this article, I’ll assume that you are familiar with basic unix commands. I believe that without knowing these commands before you will be able to learn them through this tutorial. For freshening up,

Continue Reading Add comment July 10th, 2005


Calendar

August 2008
M T W T F S S
« Jul    
 123
45678910
11121314151617
18192021222324
25262728293031

Posts by Month

Posts by Category