Originally posted by saikrishna cinux:
No Mr Stefan..
I have not intended to callt the script file instead my question was like this
There is utility file in which there are multiple methods which take parameters when passed
so now in my program i want to call one particular method in utility script file by passing some parameters
So how cna i call a particular methods of other scipt file ?
any command ?
thanks for helping me
Stefan is my first name, just call me Stefan.
When you source a file which contains just functions, not code calling these functions, they are available for execution by your script.
utils.sh:
useutils.sh sources utils.sh and calls the functions:
output:
2008-14-01/23/08
3 2 1
2008-14-01/23/08
1 2 3
2008-14-01/23/08