"One issue people run into when learning how to shell
script well is duplicating work they've already done in a script.
Rather than copying their work and changing a couple of hard-coded
values, they could simply create a function to handle the work for
both areas of the script. Creating centralized functions also
standardizes and provides for a uniform script. If a function works
in one area of the script, it's a safe bet it will work elsewhere
in the script, as well."
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.