bashscr:functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
blog:bashscr:functions [29.09.2010 18:15] – eanderalx | blog:bashscr:functions [29.09.2010 19:38] – eanderalx | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Functions ====== | + | ====== |
* How to use functions in bash | * How to use functions in bash | ||
Line 7: | Line 7: | ||
* Here an example: you can pass values returned by programms as parameter to check them. | * Here an example: you can pass values returned by programms as parameter to check them. | ||
- | <box 95% round|function check> | ||
<code bash> | <code bash> | ||
# | # | ||
Line 20: | Line 19: | ||
# | # | ||
</ | </ | ||
- | </ | ||
* You can use the function by its name with parameter (here an exit code) e.g.: '' | * You can use the function by its name with parameter (here an exit code) e.g.: '' |
bashscr/functions.txt · Last modified: 23.03.2013 18:22 by eanderalx