urgent calling function from a script

Hi,

Can we define a function say func1 in a script 1.sh and call this function from another script say 2.sh by passing an argument :confused:

I don't think you can call it from ARGV, but you can "source" the first one by putting in the start of the second script " . first-script" - then you should be able to use functions from the first within the second one.

You can also use FPATH (depending on your shell). You're probably better off doing the above suggestion, which is to source-in a file with the function definition(s).