I
heartily agree with @michaelk: "use a
real language." Also, avail yourself fully of the many
packages that are available for use in those languages.
Quote:
Originally Posted by wisdom:
Actum Ne Agas: Do Not Do A Thing Already Done.
|
If you mark the script file as "executable" and it begins with a so-called "shebang"
#! in the first line, specifying the location of a language interpreter, then that interpreter will silently be invoked to run the script and the user will be none the wiser. (The
env command exists to make this easier.)
While "bash" has
very rudimentary scripting capability, it never was intended to be used for "real work." (Only the Korn shell, "ksh," had a serious built-in language.) The elegantly-simple "shebang" mechanism means that it doesn't need to.