December 1999
Beginner
528 pages
11h 10m
English
To execute the function, simply type the function name, which is findit, with an argument, which should be a file located somewhere on the system.
$ findit groups
/usr/bin/groups
/usr/local/backups/groups.bak
Let’s now make a small change to the function. First delete the function, so it is no longer available to the shell. Do this using the unset command. The format for using the unset command when removing functions is:
unset function_name
$ unset findit
If you type set now, you will find that the function is no longer displayed.
Now edit the file functions.main and add a for loop to the function, so the script can read in more than one ...
Read now
Unlock full access