BASH Programming – Introduction HOW-TO

Next Previous Contents Thu Jul 27 09:36:18 ART 2000

This article intends to help you to start programming basic-intermediate shell scripts. It does not intend to be an advanced document (see the title). I am NOT an expert nor guru shell programmer. I decided to write this because I’ll learn a lot and it might be useful to other people. Any feedback will be apreciated, specially in the patch form 🙂

1. Introduction

  • 1.1 Getting the latest version
  • 1.2 Requisites
  • 1.3 Uses of this document

2. Very simple Scripts

  • 2.1 Traditional hello world script
  • 2.2 A very simple backup script

3. All about redirection

4. Pipes

5. Variables

6. Conditionals

7. Loops for, while and until

  • 7.1 For sample
  • 7.2 C-like for
  • 7.3 While sample
  • 7.4 Until sample

8. Functions

  • 8.1 Functions sample
  • 8.2 Functions with parameters sample

9. User interfaces

  • 9.1 Using select to make simple menus
  • 9.2 Using the command line

10. Misc

11. Tables

12. More Scripts

13. When something goes wrong (debugging)

14. About the document

Next Previous Contents

READ  Serbian HOWTO