Click Here to buy the full 72-page PDF for only £4.99, $9.99 or €6.99,
or the Kindle eBook (UK here - more countries and details here)

This site hosted by HostGator:
Use code STEVEPARKER25 and get 25% off.
A Bourne Shell Programming/Scripting Tutorial for learning about using the Unix shell. Learn Linux / Unix shell scripting by example along with the theory. I'll have you mastering Unix shell scripting in no time! Available right here on the World Wide Web.

Version: 1.2g © 2000 - 2014 Steve Parker.
Mail To: steve at
Canonical URL:
Comments Welcome.
You are free to take copies of these pages for personal use.
Last Updated: 13th September 2013


  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

Steve Bourne (author of the Bourne Shell) says:
"he probably knows more about it than I do"

Doug Kramer (Java, 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"


Links To Other Resources

Shell Scripting Recipes by Steve Parker
You can also get this tutorial in PDF form: Click Here for the 72-page PDF or you can order the 600-page book:
Steve's Bourne / Bash shell scripting tutorial
Share on Twitter Share on Facebook Share on LinkedIn Share on Share on StumbleUpon

Get the Book:

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

Buy my 600-page Shell Scripting Book...

From Amazon USA:

Or from other retailers


You can also join a Shell Scripting community on Facebook:

Get the Tutorial as a PDF:

Shell Scripting Tutorial
Buy the 72-page PDF (£4.99 / $9.99 / €6.99) of this tutorial
(Free Sample)

Get the Tutorial on Kindle:

For Kindle from Amazon USA:
For Kindle from Amazon UK:

And you can always Download my Free Shell Scripting Cheatsheet PDF