Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Advanced Bash Shell Scripting Gude.pdf
Скачиваний:
57
Добавлен:
17.08.2013
Размер:
4.82 Mб
Скачать

Advanced Bash-Scripting Guide

'TANGERINE' release: A few bugfixes, much more material and scripts added. Revision 1.4 16 June 2002 Revised by: mc 'MANGO' release: Quite a number of typos fixed, more material and scripts added.

This tutorial assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction ...all the while sneaking in little snippets of UNIX wisdom and lore. It serves as a textbook, a manual for self-study, and a reference and source of knowledge on shell scripting techniques. The exercises and heavilycommented examples invite active reader participation, under the premise that the only way to really learn scripting is to write scripts.

The latest update of this document, as an archived, bzip2-ed "tarball" including both the SGML source and rendered HTML, may be downloaded from the author's home site. See the change log for a revision history.

Dedication

For Anita, the source of all the magic

Table of Contents

Part 1. Introduction

1.Why Shell Programming?

2.Starting Off With a Sha-Bang Part 2. Basics

3.Exit and Exit Status

4.Special Characters

5.Introduction to Variables and Parameters

6.Quoting

7.Tests

8.Operations and Related Topics

Part 3. Beyond the Basics

9.Variables Revisited

10.Loops and Branches

11.Internal Commands and Builtins

http://tldp.org/LDP/abs/html/ (2 of 11) [7/15/2002 6:33:43 PM]