This knol explains how you can starts extending the
functionality of Linux operating system by automating
tasks by using shell programming. I believe that this
will be useful to both beginners and expert as well, I
also like to invite those who interested to add additional
information, thus make this knol out standing , and this
will indeed a big hand to the Linux community....
Programming with the Bourne shell (any shell Shell) is similar to programming in a conventional language. If you've ever written code in C or Pascal, or even BASIC or FORTRAN, you'll recognize many common features. For instance, the shell has variables, conditional and looping constructs, functions, and more. Shell programming is also different from conventional programming languages. For example, the shell itself doesn't provide much useful functionality; instead, most work must be done by invoking external programs. As a result, the
Shell program is series of Linux commands. Shell script is just like batch file is MS-DOS but have more power than the MS-DOS batch file. Shell script can take input from user, file and output them on screen. Useful to create our own commands that can save our lots of time and to automate some task of day today life.
Sometimes to process our data/information, it must be kept in computers RAM memory. RAM memory is divided into small locations, and each location had unique number called memory location/address, which is used to hold our data. Programmer can give a unique name to this
memory location/address called memory variable or variable (Its a named storage location that may take different values, but only one at a time). In Linux, there are two types of variable
2) User defined variables (UDV) - Created and
maintained by user. This type of variable defined in
Our shell name
BASH_VERSION=1.14.7(1) Our shell version name
No. of columns for our screen
HOME=/home/vivek Our home directory
Now bringing you back...
Does that email address look wrong? Try again with a different email.