分页: 1 / 1

如何调用其他文件中函数?

发表于 : 2014-04-11 10:01
iamcook84
在fun.maink定义函数如下:
#!/bin/bash
hellouser()
{
echo -e "hello $1\n"
}

如何在其它shell程序中调用此函数?
比如编写he.sh如下
#!//bin/bash
#如何调用hellouser?

Re: 如何调用其他文件中函数?

发表于 : 2014-04-11 10:02
YeLee
source file