TearsBack
2017-08-08 05:42linux下shell编程问题
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
- 点赞
- 回答
- 收藏
- 复制链接分享
4条回答
为你推荐
- 在鱼壳上使用`go`
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 2个回答
- 使用dep时,如何正确为协议添加golang protobuf / ptypes?
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 1个回答
- 如何修复从Go中的system-d服务运行时无法运行的环境变量
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 3个回答
- 如何编写一个shell脚本查看某个进程是否在运行
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 0个回答
- 兄弟姐妹给分析一下这个岗位,笔试会出什么问题。。
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 0个回答
换一换