3012 月 2015 Shell读取文本文件 by 飞 方法一:通过命令获取所需内容,传递给变量 var1=$(grep -i “^root” /etc/passwd | cut -d: -f 3 2>/dev/null)[……] 继续阅读