当前位置:网站首页>grep无法重定向到文件的问题
grep无法重定向到文件的问题
2022-04-23 14:10:00 【世宝宝】
昨天使用以下命令打算收集一些日志,第二天发现什么都没有。
tail -f xxx | grep xxx > xxx.log
经过检查找出原因是由于grep缓存问题引起的,改为如下命令即可生效。
tail -f xxx | grep xxx --line-buffered > xxx.log
现在发个文章还要字数限制,真是无语。
版权声明
本文为[世宝宝]所创,转载请带上原文链接,感谢
https://blog.csdn.net/0210/article/details/123816492
边栏推荐
- man man随记和crontab的@reboot用法
- 在MAC上安装mysql
- DP - [noip2000] grid access
- VMWare安装64位XP中文教程
- 线程组ThreadGroup使用介绍+自定义线程工厂类实现ThreadFactory接口
- Wechat applet communicates with low-power Bluetooth - receives data sent by hardware (IV)
- dp-能量项链
- 帆软中单元格中隔行变色以及数量大于100字体变大变红设置
- PySide2
- 使用DialogFragment的一些感受及防踩坑经验(getActivity、getDialog为空,cancelable无效等)
猜你喜欢
随机推荐
OpenStack命令操作
ie8 浏览器提示是否 阻止访问js脚本
Pass in external parameters to the main function in clion
rsync+inotify远程同步
百度笔试2022.4.12+编程题目:简单整数问题
mysql 5.1升级到5.67
VMware Workstation 无法连接到虚拟机。系统找不到指定的文件
差分隐私(背景介绍)
squid代理
1到100号的灯开关问题
Thread group ThreadGroup uses introduction + custom thread factory class to implement threadfactory interface
MySQL-InnoDB-事务
Recyclerview advanced use (I) - simple implementation of sideslip deletion
Five ways of using synchronized to remove clouds and fog are introduced
更改plsql工具栏的图标大小
Operation instructions of star boundary text automatic translator
Use the executors class to quickly create a thread pool
logback-logger和root
redis数据库讲解(三)redis数据类型
findstr不是内部或外部命令解决方法









