Robust Shell Scripting

Video description

Doing any kind of serious work on a UNIX or Linux system requires a confident understanding of shell scripting. Unfortunately, many people fear the command line and just don't know where to start.

Designed for developers and system administrators with basic UNIX or Linux skills, this course gives you the fundamentals and then moves you beyond them, teaching you how to write production-level scripts with the POSIX shell.

  • Master the POSIX shell, learn how it works, and know why it works
  • Understand the UNIX Toolbox utilities
  • Learn the shell's syntax and its control structures
  • Discover the shell's built-in facilities such as variable, command, and arithmetic substitutions
  • See how the shell finds built-in commands, functions, and external commands
  • Understand and be able to use basic and extended regular expressions
  • Learn how to save time by hooking components together in pipelines
Arnold Robbins is a professional software engineer who has worked with UNIX systems since 1980. The author of more than a dozen O'Reilly titles, including "Linux in a Nutshell", "Effective awk Programming", and the "Bash Pocket Reference", Arnold is a master communicator who holds a BA in Information Science from Yeshiva University and an MS in Computer and Information Science from Georgia Tech.

Table of contents

  1. Introduction
    1. Course Introduction
    2. About The Author
  2. Getting Started
    1. A Little Bit Of History
    2. The Software Tools Philosophy Part - 1
    3. The Software Tools Philosophy Part - 2
    4. Self-Contained Scripts: Using #!
  3. Shell Language Basics
    1. Variables And Simple Output
    2. Accessing Script Arguments
    3. Quoting And Execution Tracing
    4. Redirection And Special Files Part - 1
    5. Redirection And Special Files Part - 2
    6. Command Types; Command And Directory Searching
  4. Simple Things To Do With Text
    1. Simple Text Processing Utilities
    2. Simple Text Processing Utilities - Demo
  5. Searching For Text
    1. Introduction To Regular Expressions
    2. Basic Regular Expressions - The Components Part - 1
    3. Basic Regular Expressions Live Demo Part - 1
    4. Basic Regular Expressions - The Components Part - 2
    5. Basic Regular Expressions Live Demo Part - 2
    6. Extended Regular Expressions - The Components
    7. Extended Regular Expressions Live Demo
  6. Substituting Text
    1. Basic Operation Of Sed
    2. Substitutions With Sed - Live Demo
  7. Filename Expansions - Globbing
    1. Tilde Expansion, Wildcarding And Hidden Files
    2. Extended Pattern Matching In Bash And ksh93
  8. Working With Fields
    1. Cut And Join
    2. Rearranging Fields With Awk
    3. Rearranging Fields With Awk - Live Demo
  9. Sorting Text
    1. Sorting Text
    2. Sorting Text - Live Demo
    3. Processing Duplicates With Uniq
  10. Pipelines Can Do Amazing Things
    1. Tag Lists
  11. Variables And Arithmetic
    1. Variable Assignment And The Environment
    2. Variables Assignment And The Environment - Live Demo
    3. Parameter Expansions
    4. Parameter Expansions - Live Demo
    5. Arithmetic Expansion
  12. Exit Status And Decision Making
    1. Exit Status Values And if-elif-else-fi
    2. The Test Command
    3. Using if And Test - Demo
    4. Extended Test Command
    5. The Case Statement
  13. Looping
    1. Looping
    2. Working With Loops: Break, Continue, And Shift
    3. Select Loops
  14. Input/Output
    1. Reading Lines With Read
    2. Redirection, File Descriptor Management, And Exec
  15. Command And Process Substitution
    1. Command Substitution
    2. Command Substitution - Demo
    3. Process Substitution
  16. Evaluation Order, Subshells And Shell Functions
    1. Evaluation Order And eval
    2. Evaluation Order And eval - Demo
    3. Subshells And Code Blocks
    4. Shell Functions
  17. Handling Signals
    1. Managing Signals With Kill And Trap
  18. Working With Files
    1. Working With Files And Directories
    2. File Comparison And Working With Temporary Files
    3. Finding And Processing Files
    4. Finding And Processing Files - Demo
  19. Loose Ends
    1. Loose Ends
    2. General Takeaways
  20. Conclusion
    1. Robust Shell Scripting - Conclusion

Product information

  • Title: Robust Shell Scripting
  • Author(s): Arnold Robbins
  • Release date: February 2017
  • Publisher(s): Infinite Skills
  • ISBN: 9781491962510