Invoking parameterized functions in ad-hoc bash scripts.

Posted by evan_summers on Apr 28, 2013 2:20 PM EDT
code.google.com/p/vellum; By Evan Summers
Mail this story
Print this story

One often wishes to cut and paste commonly used commands into a shell script for later reference, and reuse. So we introduce an approach for invoking parameterized functions in a bash script.

Herewith starts a new series of articles on Bash Shell scripting tips and tricks.

One often wishes to cut and paste commonly used commands into a shell script for later reference, and reuse.

We write lots of cron scripts to perform routine maintenance tasks on our systems. We usually want a script to perform various tasks in succession, but also be able to invoke those individually in an adhoc fashion e.g. to test that task.

So in this article, we introduce a dynamic approach for invoking parameterized commands in a bash script.

Full Story

  Nav
» Read more about: Story Type: Tutorial

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.