开发者

Global variables in shell script?

file.sh

variable='String test!'
sh show.sh

show.sh

echo $variable
开发者_运维知识库

How to send variables to another file?

Thanks.


How about exporting it

export variable='String test!'

See that link, there's a great example out there (they're doing exactly what you are trying to do).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜