EanderAlx.org

Linux, Virtualization and whatever I find interesting ...

User Tools


Site Tools


bashscr:functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
blog:bashscr:functions [29.09.2010 18:15] eanderalxblog:bashscr:functions [29.09.2010 19:38] eanderalx
Line 1: Line 1:
-====== Functions ======+====== Bash - 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>
 #Functions====================================== #Functions======================================
Line 20: Line 19:
 #============================================ #============================================
 </code> </code>
-</box|retruned value's can be checked> 
  
   * You can use the function by its name with parameter (here an exit code) e.g.: ''check "$?"''   * You can use the function by its name with parameter (here an exit code) e.g.: ''check "$?"''
bashscr/functions.txt · Last modified: 23.03.2013 18:22 by eanderalx