Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1


|Views: 434|Likes:
Published by api-27045848
All about shell programming
All about shell programming

More info:

Published by: api-27045848 on Oct 19, 2008
Copyright:Attribution Non-commercial


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





Shell Programming
Shell Scripts (1)
uBasically, a shell script is a text file with Unix
commands in it.
uShell scripts usually begin with a #! and a shell
\u2013 For example:#!/bin/sh
\u2013 If they do not, the user's current shell will be used
uAny Unix command can go in a shell script
\u2013 Commands are executed in order or in the flow
determined by control statements.
uDifferent shells have different control structures
\u2013 The #! line is very important
\u2013 We will write shell scripts with the Bourne shell (sh)
Shell Scripts (2)
uWhy write shell scripts?
\u2013 To avoid repetition:
vIf you do a sequence of steps with
standard Unix commands over and over,
why not do it all with just one command?
\u2013 To automate difficult tasks:
vMany commands have subtle and difficult
options that you don\u2019t want to figure out or
remember every time.

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Sagar Sharma liked this
Anu liked this
srinivasjangam liked this

You're Reading a Free Preview

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