Writing Better Shell Scripts – Part 3

Written By
Web Webster
Web Webster
Sep 27, 2010

[ Thanks to Jeremy
Mack Wright
for this link. ]

“To enhance this post, I’ve provided a video so that
you can see a general overview of the concepts that are presented.
Browsers supporting the HTML5 video tag should present you with a
Theora (ogg/ogv) video, and browsers lacking that support should
give you a Flash substitute via Flowplayer.

“Preface

“To make things easier on you, all of the black command line and
script areas are set up so that you can copy the text from them.
This does make using the commands and scripts easier, but if you’re
not already familiar with the concepts presented here, typing the
commands/code yourself and working through why you’re typing them
will help you learn more. If you hit problems along the way, take a
look at the Troubleshooting section near the end of this post for
help.

“There are formatting conventions that are used throughout this
post that you should be aware of. The following is a list outlining
the color and font formats used.

“Command Name or Directory Path
Warning or Error
Command Line Snippet With Commands/Options/Arguments
Command Options and Their Arguments Only”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.