Linux 读取文件中内容赋值给变量

var=$(cat somefile.txt)

echo ${var}

posted @ 2017-07-11 15:38  悟空的爸爸  阅读(9501)  评论(0编辑  收藏  举报