Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

  • 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.

  • 29k Accesses

Buying options

eBook EUR 12.99 EUR 39.99
Discount applied Price includes VAT (Netherlands)
  • ISBN: 978-1-4842-0220-3
  • Instant EPUB and PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book EUR 54.49
Price includes VAT (Netherlands)
  • ISBN: 978-1-4842-0221-0
  • Dispatched in 3 to 5 business days
  • Exclusive offer for individuals only
  • Free shipping worldwide
    See shipping information.
  • Tax calculation will be finalised during checkout

This is a preview of subscription content, access via your institution.

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

  • Book Title: Shell Scripting Recipes

  • Book Subtitle: A Problem-Solution Approach

  • Authors: Chris F. A. Johnson, Jayant Varma

  • DOI: https://doi.org/10.1007/978-1-4842-0220-3

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Professional and Applied Computing (R0), Apress Access Books

  • Copyright Information: Chris Johnson and Jayant Varma 2015

  • Softcover ISBN: 978-1-4842-0221-0Published: 13 October 2015

  • eBook ISBN: 978-1-4842-0220-3Published: 23 October 2015

  • Edition Number: 2

  • Number of Pages: XXIII, 351

  • Number of Illustrations: 15 b/w illustrations

  • Topics: Open Source, Software Engineering

Buying options

eBook EUR 12.99 EUR 39.99
Discount applied Price includes VAT (Netherlands)
  • ISBN: 978-1-4842-0220-3
  • Instant EPUB and PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book EUR 54.49
Price includes VAT (Netherlands)
  • ISBN: 978-1-4842-0221-0
  • Dispatched in 3 to 5 business days
  • Exclusive offer for individuals only
  • Free shipping worldwide
    See shipping information.
  • Tax calculation will be finalised during checkout