Expert Shell Scripting
- 4h 40m
- Ron Peters
- Apress
- 2009
System administrators need libraries of solutions that are ingenious but understandable. They don’t want to reinvent the wheel, but they don’t want to reinvent filesystem management either! Expert Shell Scripting is the ultimate resource for all working Linux, Unix, and OS X system administrators who would like to have short, succinct, and powerful shell implementations of tricky system scripting tasks.
- Automating small to medium system management tasks
- Analyzing system data and editing configuration files
- Scripting Linux, Unix, and OS X applications using bash, ksh, et al.
What you’ll learn
- Debug shell scripts using existing debuggers, not inspection.
- Use and extend text–editing one–liners and learn to forget Perl.
- Manage files and filesystems using scripting, not inflexible utilities.
- Use scripts to build complete Linux systems.
- Script X Window without getting lost in configuration files.
- Ignore Python, and script in bash and ksh instead.
Who is this book for?
System administrators who need solutions to everyday problems.
About the Author
RON PETERS has worked as a system administrator for most of the last 15 years. He was a senior administrator at Intel in a 24/7 production environment and was the primary administrator of a large compute cluster dedicated to design work. He is now a Linux/ UNIX administrator for Columbia Sportswear.
In this Book
-
Shell Script Debugging
-
Standard Function Library
-
Date and Time Manipulation
-
Comparisons and Tests
-
Accepting Command-Line Options, Switches, and Parameters
-
Testing Variables and Assigning Defaults
-
Indirect Reference Variables
-
Shell Process Tree
-
Data Redirection
-
Piping Input to Read
-
Math from the Shell
-
cron
-
Self-Linked Scripts
-
Throttling Parallel Processes
-
Command-Line Editing and History
-
Scripting from the Command Line
-
Automating User Input with expect
-
User Input Timeout
-
Instant Keyboard Response
-
Directory Copying
-
A Brief Tour of the X Display Environment
-
X Navigation Window
-
Command-Line E-mail Attachments
-
Text-Processing One-Liners
-
Editing Files in Place
-
Evaluating Variables in a Flat File
-
Read Piped Input
-
Free-Format Output Using cat
-
Automating Interactive Processes
-
Automating E-mail with procmail
-
Process-Management Monitor
-
Managing File Counts
-
Processes Running from inittab
-
Automatic RCS
-
Colorful /proc Reporting
-
Password-Aging Notification
-
A Pseudo-shadow File
-
Linux Gold-System Build
-
System Snapshots
-
Removing Large Files and Log Rolling
-
Core Finder
-
Network Adapter Failover