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.



Version: 1.2d
© 2000 - 2011 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: 1st February 2012

Comments Welcome.


Contents

My new 564-page book, Shell Scripting, published by Wiley, is on sale now. Please click "Like" on the left if you are on Facebook, or just click here to get the book.
  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

Shell Scripting Recipes by Steve Parker
You can also get this tutorial in PDF form: Click Here for the 70-page PDF or you can order the 564-page book:
http://www.wiley.com/buy/1118024486
Steve's Bourne / Bash shell scripting tutorial
Share on Twitter Share on Facebook Share on LinkedIn Share on Identi.ca Share on StumbleUpon

Want to take the tutorial with you?

My Shell Scripting Book:
    Shell Scripting, Expert Recipes for Linux, Bash and more
is available online and from all good booksellers.

Buy my 564-page Shell Scripting Book...

From Amazon USA:

From Amazon UK:

For Kindle:

Or From other retailers

You can also find the book, and join a shell scripting community, on Facebook:


Option Two: Buy the 70-page PDF (£4.99/$9.99/€6.99)
(Free Sample)

And you can always Download my Free Shell Scripting Cheatsheet PDF