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 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
4条回答
悬赏问题
- ¥15 一道python难题
- ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
- ¥15 牛顿斯科特系数表表示
- ¥15 arduino 步进电机
- ¥20 程序进入HardFault_Handler
- ¥15 oracle集群安装出bug
- ¥15 关于#python#的问题:自动化测试
- ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
- ¥15 教务系统账号被盗号如何追溯设备
- ¥20 delta降尺度方法,未来数据怎么降尺度