Click here to start

Table of contents

Partie II : Programmation shell

Programmation shell : plan (1)

Programmation shell : plan (2)

Programmation shell : plan (3)

Programmation shell : plan (4)

Programmation shell : plan (5)

Programmation shell : plan (6)

Introduction

Script shell

Contenu d'un script shell

Variables et paramètres (1)

Variables et paramètres (2)

Exemple de script (1)

Exemple de script (2)

Exécution d'un script shell

Sortie d'un script shell

Exercices I.1

Variables, paramètres et substitutions

Variables de shell

Exemples de variables de shell

Variables et substitutions

Variables et lecture de valeurs

Variables et affectations

Exercice II.1

Structures de contrôle

Structures de controle

Groupage de commandes

La commande if (1)

La commande if (2)

La commande test (1)

La commande test (2)

La commande test (3)

La commande test (4)

Exercices III.1

La commande case (1)

La commande case (2)

Exercices III.2

La commande for (1)

La commande for (2)

Exercices III.3

La commande seq

La commande while

La commande until

La commande break

La commande continue

Structures de contrôles et redirections

Exercice III.4

Les fonctions

Les fonctions (1)

Les fonctions (2)

Les fonctions (3)

Les fonctions (4)

Exercices IV.1

Commandes utiles

La commande expr (1)

La commande expr (2)

Arithmétique entière

La commande eval (1)

La commande eval (2)

La commande exec

La commande getopts

La commande select

Exercices V.1

Mini-projets

Gestion de sauvegardes

Gestion d'une poubelle

Un mécanisme d'annulation (1)

Un mécanisme d'annulation (2)

Author: Marc Gaëtano

E-mail: gaetano@polytech.unice.fr

Homepage: http://www-local.essi.fr/~gaetano/unix

Further information:
Deuxième partie du cours "Introduction à Unix", consacrée à la porgrammation en shell.