M01: Introduction to Operating Systems
TU3: Installing specific purpose software
ASIX1
Pract. Exerc. 3: Introduction to shell scripts  17-02-25

A12 - INTRODUCTION TO SHELL SCRIPTS AND SCHEDULING TASKS

PART 1 - SHELL SCRIPTS

1.1- DOCUMENTATION

a) Introduction
    a.1.-
What is a Linux shell?
    a.2.- What is a shell program or script? // What is a shell program or script?
    a.3.- Interpreted vs Compiled programs
    a.4.- Why to write a shell script?  // Why to write a shell script?
    a.5.- What is a shebang (or sha-bang)?
    a.6.- Writing your first script and getting it to work
    a.7.- Different ways to invoke a script
    a.8.- Debugging bash scripts
b) Variables
    b.1.- Variables: environment variables and user defined variables.
    b.2.- Displaying current values of your environment variables
    b.3.- User defined variables.
    b.4.- Accessing to a variable value.
    b.5.- Positional parameters (also called arguments)
    b.6.- Bash variables are untyped
    b.7.- Bash special variables
c) Special characters
    c.1.- List of special characters
    c.2.- Comments
    c.3.- Quotes 
d) Some important commands
    d.1.- exit
    d.2.- echo . Another web page with useful information about the echo command..
    d.3.- read
    d.4.- expr
    d.5.- File test operators // Other comparision operators
e) if...then...else...fi structure
    e.1.- if..then..else..fi // if..then..else..fi
    e.2.- if..then..fi
    e.3.- brackets
    e.4.- Nested if/then Condition Tests
f) case statement
    f.1.- case stament
g) Loop staments
    g.1.- while statement
    g.2.- until statement
    g.3.- for statement
h)
Useful links
    h.1.-
http://tldp.org/LDP/abs/html/
    h.2.-http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/index.html
    h.3.- http://www.freeos.com/guides/lsst/index.html
    h.4.- http://bash.cyberciti.biz/guide/Main_Page
    h.5.- http://www.dartmouth.edu/~rc/classes/ksh/welcome.html#top

1.2 - EXAMPLES

a)  Some small examples    
 
1.3 - PRACTICAL EXERCISES

a)  Classroom (statements)
b) Home (staments)
c) Home (solutions)


PART 2 - SCHEDULING TASKS

<<<<<<UNDER CONSTRUCTION>>>>>