Linux shell script function

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

1 simple shell function

To create a simple shell function, as follows:

To view the results:


2 see, removal function

Use the declare command to view the dir_f function just established.

declare -f dir_f

The dir_f function was established using unset command removes.

uset -f dir_f

3 function grammar

From simple examples above can be seen, shell function is the basic grammar:

name ( )




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Kent at November 05, 2013 - 7:50 PM