... Sensitivity 1
Unix Special Characters 2
Shells 2
Shell Scripts 2
Functions 2
A Function Has the Form 3
Running a Shell Script 3
Declare the Shell in the Shell Script 3
Comments and Style in Shell Scripts ... your
default shell environment the Korn shell (ksh); the standard shell on Linux is the
Bourne Again shell (bash) shell, and some others use Bourne shell (sh) as th...
... package to access the shell (Chapter 2)
Introducing the basic shell commands (Chapter 3)
Using more advanced shell commands to peek at system information (Chapter 4)
Working with shell variables ...
In This Part
Chapter 1: Starting with Linux Shells
Chapter 2: Getting to the Shell
Chapter 3: Basic bash Shell Commands
Chapter 4: More bash Shell Commands
Chapter 5: Using...
... learnto
speak.
xv
27 April 2003 17:10
xvi Preface
WhyI’ve Written the Second Edition
In the five and a half years since the first edition of this book was published, the
world of regular expressions expanded ... accomplished
regular-expr ession expert. After the first edition, it wasn’t uncommon for me to
receive an email that started “I thought Iknew regular expressions until I read
Maste...
... 381
25 June 2002 09:00
Regular
Expressions
Perl, .NET, Java, and More
Jeffrey E.F. Friedl
Mastering
2
nd Edition
382 Chapter 8: Java
Sun’s java.util.regex “Line Ter minators”
Traditionally, pre-Unicode ... just the requir ed work to be done.
Sun’s Regex Package 391
25 June 2002 09:00
Mastering Regular Expressions
Second Edition
Jeffrey E. F. Friedl
Beijing
•
Cambridge
•
Farnham
•
K...
... Protocols
Stephen A . Rago, UNIX
®
System V Network Programming
Eric S. Raymond, The Art of UNIX Programming
Marc J. Roc hkind, Advanced UNIX Programming, Second Edition
Curt Schimmel, UNIX
®
Systems for ... terminal (an interactive shell) or sometimes from a file (called a shell script). The
common shells in use are summarized in Figure 1.2.
Figure 1.2. Common shells used on...
... the copy program can be written this
way:
#include <stdio.h>
/* copy input to output; 2nd version */
main()
{
int c;
while ((c = getchar()) != EOF)
putchar(c);
}
The while gets ... version */
main()
{
long nc;
nc = 0;
while (getchar() != EOF)
2
Preface 6
Preface to the first edition 8
Chapter 1 - A Tutorial Introduction 9
1.1 Getting Started 9
1.2 Variables and Arithme...
...
service desks, as a UNIX systems admin, a project manager, an e-commerce/business web
site administrator, and a solutions developer.
Brian’s development and use of UNIX shell scripts has always ...
Expert Shell Scripting
■■■
Ron Peters
4
CHAPTER 1
■
SHELL SCRIPT DEBUGGING
preceded by a plus-sign (+) prompt to designate it as part of the trace output. Traced
commands from the r...
... good
suggestions for improvement. Hopefully they will benefit the most from this edition.
Since I started this edition, I have left the company where I was a consultant for five years
to start ... team
still took the book through every phase of editing and layout that is required for a first edition.
As usual, they did a great job and deserve a heartfelt thank you. The project was driven...