Bash Programming
MaGenTa
yelloW
BlaCk
Books for professionals By professionals ®
Pro Bash Programming:
Scripting the GNU/Linux Shell
Author of
Shell Scripting Recipes:
A Problem-Solution
Approach
Companion eBook
The shell is a programming language! A shell script is as much a program as
anything written in C, Python, or any other programming language. Just
because shell scripts areeasier to write doesn’t mean they should take a backseat to compiled programs or other scripting languages.
I wrote Pro Bash Programming to present a tutorial that introduces the shell,
and bash specifically, as a programming language. If you need a program to
accomplish a task on GNU/Linux or any other Unix-type system, I want you
to consider the shell before any other language. If you writea prototype for a
program using the shell, I want you to realize that you don’t need to translate it
to another language.
This book will give you a grounding in programming techniques used in
writing shell programs no matter what your past programming experience. If
you’ve never written a computer program before, Pro Bash Programming will
get you started and help you become a proficientshell programmer. If you
have written a few shell programs, this book will take you to the next level and
beyond. It will enable you to do things with the shell you never thought it could
do. If you are already an expert shell programmer, this book will provide insight
into the advanced shell programming, helping you write more, and more efficient, scripts.
Bash is the shell of the Free SoftwareFoundation’s GNU project and is the
standard shell on almost all Linux distributions. It is the shell you probably
use at the command line. It offers programmers many enhancements over the
standard Unix shell. You will find bash on many versions of Unix. It may not be
the default shell, but it is usually available for interpreting your scripts.
I hope this book will help you become a moreproductive programmer and
that your programs will be written using the Bash shell.
Companion
eBook
Available
Covering
Bash 4.0
Pro
Bash Programming
Dear Reader,
The eXperT’s VoiCe ® in linuX
Pro
Bash
Programming
Scripting the GNU/Linux Shell
Programming bash from one-liners
to professional programs
Chris F.A. Johnson
THE APRESS ROADMAP
See last page fordetails
on $10 eBook version
SOURCE CODE ONLINE
www.apress.com
US $34.99
Shelve in
Linux
User level:
Beginner–Intermediate
Intermediate–Advanced
Advanced
Beginning Ubuntu LTS Server
Administration 2nd Edition
Pro Bash
Programming
Beginning Portable Shell Scripting
Beginning the
Linux Command Line
Expert Shell
Scripting
Linux System
Administration Recipes
ISBN978-1-4302-1997-2
5 34 9 9
Covering
Bash 4.0
Johnson
Beginning Perl 2nd Edition
Chris F.A. Johnson
9 7814
30 219972
this print for content only—size & color not accurate
trim = 7.5" x 9.25" spine = 0.5625"
256 page count
Download at WoweBook.Com
■ CONTENTS
Pro Bash Programming
Scripting the GNU/Linux Shell
■■■
Chris F.A. Johnson
i
Download atWoweBook.Com
■ CONENTS
Pro Bash Programming: Scripting the GNU/Linux Shell
Copyright © 2009 by Chris F.A. Johnson
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner andthe publisher.
ISBN-13 (pbk): 978-1-4302-1997-2
ISBN-13 (electronic): 978-1-4302-1998-9
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every
occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of
the trademark owner, with no intention of...
Regístrate para leer el documento completo.