Bash Shell Functions Tutorial with 6 Practical Examples
Apr 23, 2010, 14:33 (2 Talkback[s])
Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js
"Bash shell functions are a way to group several UNIX / Linux
commands for later execution using a single name for the group.
Bash shell function can be executed just like a regular Unix
command. Shell functions are executed in the current shell context
without creating any new process to interpret them.
"Both bash aliases and functions allow you to define shortcuts
for longer or more complicated commands. However, aliases don't
allow control-flows, arguments, and other trickery things these
functions will allow as explained in this tutorial.
"This article is part of the on-going bash tutorial series.
Refer to our earlier tutorial about bash introduction, bash exist
status and bash alias examples."