Invoking parameterized functions in ad-hoc bash scripts.
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 |
This topic does not have any threads posted yet!
You cannot post until you login.