temp=tail -n 3 /tmp/temp1.log | awk -F"+" '/T/{print $2}'
rh=tail -n 3 /tmp/temp1.log | awk -F"=" '/R/{print $2}'
echo $temp,$rh%
以上是我在linux6.3下写的一个脚本,但是却不能在tmp目录下生成temp1.log文件,请问是怎么回事?
提示:
tail: cannot open /tmp/temp1.log' for reading: No such file or directory
/tmp/temp1.log' for reading: No such file or directory
tail: cannot open
linux下shell编程问题
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-