Showing posts with label Linux Shell Scripting. Show all posts
Showing posts with label Linux Shell Scripting. Show all posts

Monday, November 26, 2012

Linux Shell scripting basics and Simple example to add two numbers

Shell scripting is a file which contains the list of commands for executing. What is Shell? Shell is special program or application provided for the user interaction.
There are different kinds of shells in Unix/Linux, they are
  • Sh: Bourne Shell
  • Csh: C Shell
  • Ksh: Korn Shell
  • Bash: Bourne again Shell.. etc
Some of the advantages of the shell scripting are,
  • Automation of tasks such as backups,log monitoring etc
  • To do repetition of of tasks
  • Save lots of time..
Unix/Linux Shell scripting also containg the functions, control statements,loops like other programming languages C, C++...