Shell Scripting: Expert Recipes for Linux, Bash, and more

Front Cover
John Wiley & Sons, Aug 17, 2011 - Computers - 600 pages
A compendium of shell scripting recipes that can immediately be used, adjusted, and applied

The shell is the primary way of communicating with the Unix and Linux systems, providing a direct way to program by automating simple-to-intermediate tasks. With this book, Linux expert Steve Parker shares a collection of shell scripting recipes that can be used as is or easily modified for a variety of environments or situations. The book covers shell programming, with a focus on Linux and the Bash shell; it provides credible, real-world relevance, as well as providing the flexible tools to get started immediately.

  • Shares a collection of helpful shell scripting recipes that can immediately be used for various of real-world challenges
  • Features recipes for system tools, shell features, and systems administration
  • Provides a host of plug and play recipes for to immediately apply and easily modify so the wheel doesn't have to be reinvented with each challenge faced

Come out of your shell and dive into this collection of tried and tested shell scripting recipes that you can start using right away!

 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

THE HISTORY OF UNIX GNU AND LINUX
3
GETTING STARTED
15
CONTENTS
26
VARIABLES
33
WILDCARD EXPANSION
67
CONDITIONAL EXECUTION
83
FLOW CONTROL USING LOOPS
111
VARIABLES CONTINUED
139
printf
335
shuf
337
Card Dealer
338
Travel Planner
340
sort
341
Sorting on Keys
342
Sorting Log Files by Date and Time
344
Sorting HumanReadable Numbers
345

FUNCTIONS AND LIBRARIES
161
ARRAYS
199
PROCESSES
219
CHOOSING AND USING SHELLS
255
FILE MANIPULATION
279
grep
300
grep Regular Expressions
301
split
303
tee
304
touch
306
find
307
findexec
310
Summary
313
TEXT MANIPULATION
315
echo
316
fmt
320
head and tail
323
World Cup
324
0d
331
pr
334
tr
346
uniq
350
wc
351
Summary
352
TOOLS FOR SYSTEMS ADMINISTRATION
353
date
355
More Interesting Uses of date
359
xxiv
360
SHELL FEATURES
409
Potential Pitfalls
415
Postinstall Scripts
421
SYSTEMS ADMINISTRATION
427
xxvi
449
PRESENTATION
459
DATA STORAGE AND RETRIEVAL
471
NUMBERS
483
PROCESSES
501
INTERNATIONALIZATION
517
Copyright

Common terms and phrases

About the author (2011)

Steve Parker is an IT consultant specializing in Solaris and GNU/Linux. He has been providing consultancy services for more than a decade. He is the author of the popular Bourne Shell Programming/Scripting Tutorial (http://steve-parker.org/sh/sh.shtml), which sees more than one million visitors a year.

Bibliographic information