Expert Shell Scripting

Overview

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.

  • ...
See more details below
Paperback (2009)
$44.99
BN.com price
Other sellers (Paperback)
  • All (13) from $16.79   
  • New (8) from $28.58   
  • Used (5) from $16.79   
Expert Shell Scripting

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$28.99
BN.com price
(Save 19%)$35.99 List Price

Overview

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 this book is for

System administrators who need solutions to everyday problems.

Read More Show Less

Product Details

  • ISBN-13: 9781430218418
  • Publisher: Apress
  • Publication date: 1/7/2009
  • Edition description: 2009
  • Edition number: 1
  • Pages: 320
  • Product dimensions: 6.90 (w) x 9.10 (h) x 1.00 (d)

Meet the Author

Ron Peters spent more than ten years administering Linux and Unix systems while building a very large library of shell scripts. He realized that the world is full of how-to documents, but not many seem to read them, nor can many system administrators lay claim to being shell scripting experts. He apologizes that it took him so long to make his efforts known to the world. He is married with two children and very happy that he found the time to write this book.
Read More Show Less

Table of Contents

Pt. 1 Basic Scripting Techniques

Ch. 1 Shell Script Debugging 3

Ch. 2 Standard Function Library 13

Ch. 3 Date and Time Manipulation 19

Ch. 4 Comparisons and Tests 25

Ch. 5 Accepting Command-Line Options, Switches, and Parameters 31

Ch. 6 Testing Variables and Assigning Defaults 37

Ch. 7 Indirect Reference Variables 43

Ch. 8 Shell Process Tree 49

Ch. 9 Data Redirection 59

Ch. 10 Piping Input to read 65

Pt. 2 System Interaction and Advanced Techniques

Ch. 11 Math from the Shell 75

Ch. 12 Cron 81

Ch. 13 Self-Linked Scripts 87

Ch. 14 Throttling Parallel Processes 91

Ch. 15 Command-Line Editing and History 99

Ch. 16 Scripting from the Command Line 103

Ch. 17 Automating User Input with expect 107

Ch. 18 User Input Timeout 115

Ch. 19 Instant Keyboard Response 121

Ch. 20 Directory Copying 125

Ch. 21 A Brief Tour of the X Display Environment 131

Ch. 22 X Navigation Window 141

Ch. 23 Command-Line E-mail Attachments 151

Ch. 24 Text-Processing One-Liners 157

Ch. 25 Editing Files in Place 173

Ch. 26 Evaluating Variables in a Flat File 181

Ch. 27 Read Piped Input 183

Ch. 28 Free-Format Output Using cat 185

Ch. 29 Automating Interactive Processes 187

Pt. 3 Useful Scripts

Ch. 30 Automating E-mail with procmail 193

Ch. 31 Process-Management Monitor 201

Ch. 32 Managing File Counts 211

Ch. 33 Processes Running from inittab 215

Ch. 34 Automatic RCS 219

Ch. 35 Colorful /proc Reporting 223

Ch. 36 Password-Aging Notification 231

Ch. 37 A Pseudo-shadow File 241

Ch. 38 Linux Gold-System Build 245

Ch. 39 System Snapshots 251

Ch. 40 Removing Large Files and Log Rolling 261

Ch. 41 Core Finder 265

Ch. 42 Network Adapter Failover267

App. A Test Switches 273

App. B Special Parameters 275

App. C Other Shell-Scripting Resources 277

Index 281

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)