Chapter 10. Writing Basic Scripts

Chapter contents

  • Creating shell scripts

  • Running shell scripts

  • Making scripts executable

  • Getting a head start on creating scripts

  • Embedding commands in scripts

  • Looping scripts

  • Creating if-then statements

  • Accepting command line input

  • Accepting command line input while a script is running

  • Debugging scripts

So far in this book, you've been typing in commands (or perhaps combining commands), pressing , then waiting for UNIX to execute the command(s) you specified…and typing in commands, pressing , and waiting for UNIX…and typing ...

Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.