Skip to main content
  • Book
  • © 2015

Shell Scripting Recipes

A Problem-Solution Approach

Apress
  • Shell Scripting Recipes is filled with over 150 much-needed and practical recipes that follow a problem-solution format, and help all Unix users regain some of the lost time spent creating and testing shell scripts.

  • Most scripts in this book are POSIX (Portable Operating System Interface)-compliant, so they are supported by many of the major shell variants, including Bash, ksh, and sh, among others.

  • 30k Accesses

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (18 chapters)

  1. Front Matter

    Pages i-xxiii
  2. Chapter 1: The POSIX Shell and Command-Line Utilities

    • Chris F. A. Johnson, Jayant Varma
    Pages 1-41
  3. Chapter 3: String Briefs

    • Chris F. A. Johnson, Jayant Varma
    Pages 63-82
  4. Chapter 4: What’s in a Word?

    • Chris F. A. Johnson, Jayant Varma
    Pages 83-106
  5. Chapter 5: Scripting by Numbers

    • Chris F. A. Johnson, Jayant Varma
    Pages 107-137
  6. Chapter 6: Loose Names Sink Scripts: Bringing Sanity to Filenames

    • Chris F. A. Johnson, Jayant Varma
    Pages 139-157
  7. Chapter 7: Treading a Righteous PATH

    • Chris F. A. Johnson, Jayant Varma
    Pages 159-166
  8. Chapter 8: The Dating Game

    • Chris F. A. Johnson, Jayant Varma
    Pages 167-186
  9. Chapter 9: Good Housekeeping: Monitoring and Tidying Up File Systems

    • Chris F. A. Johnson, Jayant Varma
    Pages 187-200
  10. Chapter 10: Screenplay: The screen–funcs Library

    • Chris F. A. Johnson, Jayant Varma
    Pages 201-228
  11. Chapter 11: Aging, Archiving, and Deleting Files

    • Chris F. A. Johnson, Jayant Varma
    Pages 229-238
  12. Chapter 12: Covering All Your Databases

    • Chris F. A. Johnson, Jayant Varma
    Pages 239-257
  13. Chapter 13: Home on the Web

    • Chris F. A. Johnson, Jayant Varma
    Pages 259-280
  14. Chapter 14: Taking Care of Business

    • Chris F. A. Johnson, Jayant Varma
    Pages 281-296
  15. Chapter 15: Random Acts of Scripting

    • Chris F. A. Johnson, Jayant Varma
    Pages 297-315
  16. Chapter 16: A Smorgasbord of Scripts

    • Chris F. A. Johnson, Jayant Varma
    Pages 317-332
  17. Chapter 17: Script Development Management

    • Chris F. A. Johnson, Jayant Varma
    Pages 333-341
  18. Appendix A: Internet Scripting Resources

    • Chris F. A. Johnson, Jayant Varma
    Pages 343-345
  19. Back Matter

    Pages 347-351

About this book

Filled with over 150 essential, practical recipes that empower Unix users to regain lost time
spent creating and testing shell scripts. The majority of scripts included are POSIX-compliant
and supported by many of the major shell variants, including Bash, ksh, and sh.
Each real-world example recipe follows the same problem-solution structure, meaning
cross-referencing is easy and fast. Recipe topics include file conversion (DOS, UNIX, and
Mac), system administration, resource monitoring, filename management, complex date
calculations, screen control capabilities, and much more.


Completely updated for this second edition and taking all the changes of the past ten
years into account, every recipe in this book is now relevant for a modern audience. Authors
Chris Johnson’s and Jayant Varma’s code is clear, direct, and applicable. Add this excellent
reference to your library today.

About the authors

Chris F.A. Johnson was introduced to Unix in 1990 and learned shell scripting because there was no C compiler on the system. His first major project was a menu-driven, user-extensible database system with report generator. Chris uses the shell as his primary, general-purpose programming language, and his projects have included a member database, menuing system, and POP3 mail filtering and retrieval. Chris is the author of Shell Scripting Recipes: A Problem-Solution Approach (Apress, 2005). When not pushing shell scripting to the limit, he designs and codes web sites, teaches chess, and composes cryptic crosswords.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access