Steve's Bourne / Bash shell scripting tutorial

Steve's Bourne / Bash shell scripting tutorial

A Bourne Shell Programming/Scripting Tutorial for learning about using the Unix shell. Learn Linux / Unix shell scripting by example along with the theory. We'll have you mastering Unix shell scripting in no time! Available right here on the World Wide Web. Comments Welcome.
Version: 1.1b
© 2000 - 2010 Steve Parker.
Mail To: steve at steve-parker.org
Canonical URL: http://steve-parker.org/sh/sh.shtml
You are free to take copies of these pages for personal use.
Last Updated: 10th Jan 2010

Contents

1. Intro 2. Philosophy 3. A First Script 4. Variables - Part I 5. Wildcards 6. Escape Characters 7. Loops 8. Test 9. Case 10. Variables - Part II 11. Variables - Part III 12. External Programs 13. Functions 14. Hints and Tips 15. Quick Reference 16. Interactive 17. Exercises 1. Intro
  1. Intro
  2. Philosophy
  3. A First Script
  4. Variables - Part I
  5. Wildcards
  6. Escape Characters
  7. Loops
  8. Test
  9. Case
  10. Variables - Part II
  11. Variables - Part III
  12. External Programs
  13. Functions
  14. Hints And Tips
  15. Quick Reference
  16. Interactive Shell
  17. Exercises

Doug Kramer (Java, Google.com) says:
"When I started writing CGI script in Bourne shell on the Java team at Sun, I scoured the Internet for a good tutorial and used Steve Parker's guide, which I really like. Now that I've moved to Google and switched to Linux and bash, I've decided to use it as the basis for an in-house introductory course on bash scripting here at Google for our tech writers. I highly recommend it as accurate and written at the right level, plus it includes a useful reference"



Feedback

Links To Other Resources

You can also get this tutorial in PDF form: