Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Linux Shell Programming

Linux Shell Programming

Ratings: (0)|Views: 14 |Likes:
Published by api-3797737

More info:

Published by: api-3797737 on Oct 17, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Linux Shell Scripting Tutorial Ver. 1.0
Written by Vivek G Gite
I N D E X
Introduction
Kernel
r
Shell
r
How to use Shell
r
Common Linux Command Introduction
r
q
Process
Why Process required
r
Linux commands related with process
r
q
Redirection of Standard output/input
Redirectors
r
Pipes
r
Filt e rs
r
q
Shell Programming
Variables in Linux
r
How to define User defined variables
r
Rules for Naming variable name
r
How to print or access value of UDV (User defined variables)
r
How to write shell script
r
How to Run Shell Scripts
r
Quotes in Shell Scripts
r
q
Linux Shell Scripting Tutorial
http://www.freeos.com/guides/lsst/index.htm (1 of 2) [17/08/2001 17.41.52]
Shell Arithmetic
r
Command Line Processing (Command Line Arguments)
r
Why Command Line arguments required
r
Exit Status
r
Filename Shorthand or meta Characters (i.e. wild cards)
r
Programming Commands
echo command
r
Decision making in shell script ( i.e. if command)
r
test command or [ expr ]
r
Loop in shell scripts
r
The case Statement
r
The read Statement
r
q
More Advanced Shell Script Commands
/dev/null - Use to send unwanted output of program
r
Local and Global Shell variable (export command)
r
Conditional execution i.e. && and | |
r
I/O Redirection and file descriptors
r
Functions
r
User Interface and dialog utility
r
trap command
r
getopts command
r
More examples of Shell Script (Exercise for You :-)
r
q
\u00a9 1998-2000FreeOS.com (I) Pvt. Ltd. All rights reserved.
Linux Shell Scripting Tutorial
http://www.freeos.com/guides/lsst/index.htm (2 of 2) [17/08/2001 17.41.52]
Introduction

This tutorial is designed for beginners only and This tutorial explains the basics of shell programming by showing some examples of shell programs. Its not help or manual for the shell. While reading this tutorial you can find manual quite useful ( type man bash at $ prompt to see manual pages). Manual contains all necessary information you need, but it won't have that much examples, which makes idea more clear. For that reason, this tutorial contains examples rather than all the

features of shell. I assumes you have at least working knowledge of Linux i.e. basic

commands like how to create, copy, remove files/directories etc or how to use
editor like vi or mcedit and login to your system. Before Starting Linux Shell Script
Programming you must know

Kernel
q
Shell
q
Process
q
Redirectors, Pipes, Filters etc.
q
What's Kernel
Kernel is hart of Linux O/S. It manages resource of Linux O/S. Resources means
facilities available in Linux. For eg. Facility to store data, print data on printer,
memory, file management etc . Kernel decides who will use this resource, for how
long and when. It runs your programs (or set up to execute binary files) It's
Memory resident portion of Linux. It performance following task :-
I/O management
q
Process management
q
Device management
q
File management
q
Memory management
q
What's Linux Shell
Computer understand the language of 0's and 1's called binary language, In early

days of computing, instruction are provided using binary language, which is difficult for all of us, to read and write. So in O/s there is special program called Shell. Shell accepts your instruction or commands in English and translate it into computers

native binary language.
This is what Shell Does for US
Linux Shell Script Tutorial
http://www.freeos.com/guides/lsst/kershell.htm (1 of 5) [17/08/2001 17.42.02]

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->