Functions in bash script
Is it possible to define functions and called in bash script as in C++
|
If you're willing to research a little, Bash functions --> http://tldp.org/LDP/abs/html/abs-guide.html#FUNCTIONS
|
I strongly recommend downloading the pdf version of ABS and using it for searches. (Don't print it unless you are into killing trees.)
|
Functions are easy to use in bash. Just be sure that they come first in your script before they are called:
Code:
#!/bin/bash |
All times are GMT -5. The time now is 02:09 AM. |