Bash Guide for Beginners

Bash Guide for Beginners

This guide discusses concepts useful in the daily life of the serious Bash user. While a basic knowledge of shell usage is required, it starts with a discussion of shell building blocks and common practices. Then it presents the grep, awk and sed tools that will later be used to create more interesting examples. The second half of the course is about shell constructs such as loops, conditional tests, functions and traps, and a number of ways to make interactive scripts.


Everybody working on a UNIX or UNIX-like system who wants to make life easier on themselves, power users and sysadmins alike, can benefit from reading this book. Readers who already have a grasp of working the system using the command line will learn the ins and outs of shell scripting that ease execution of daily tasks. System administration relies a great deal on shell scripting; common tasks are often automated using simple scripts. This document is full of examples that will encourage you to write your own and that will inspire you to improve on existing scripts.

Table of Contents

  • Bash and Bash scripts
  • Writing and debugging scripts
  • Regular expressions
  • The GNU sed stream editor
  • The GNU awk programming language
  • Conditional statements
  • Writing interactive scripts
  • Repetitive tasks
  • More on variables
  • Functions
  • Catching signals

Book Details

Author(s): Machtelt Garrels
Publisher: Fultus Corporation
Format(s): PDF, HTML, PostScript, Text
File size: 1.14 MB
Number of pages: 173
Link: Download or read online.

Leave a Reply