 <p><a href="http://wiki.bash-hackers.org/scripting/posparams" rel="nofollow">http://wiki.bash-hackers.org/scripting/posparams</a></p> <p>It explains the use of <code>shift</code> (if you want to discard the first N parameters) and then implementing Mass Usage (look for the heading with that title).</p>