shell 执行结果赋给变量

#将pwd的执行结果放到变量value中保存,

value=$(pwd)

另一种方法:

value=`pwd`

posted @ 2018-01-23 14:41  kakaisgood  阅读(669)  评论(0编辑  收藏  举报