需求:
shell读取文件内容,然后把内容赋值给变量然后进行字符串处理
实现:
dataline=$(cat /root/data/data.txt)
echo $dataline
摘自:http://xhuojia.com/zhuanlan/1832921069.html