OS X 中的Bash,'watch'命令
- 论坛
- OS X 中的Bash,'watch'命令
19 浏览
OS X 中的Bash,'watch'命令
我正在寻找在Mac OS X上复制Linux \'watch\'命令的最佳方法。我想每隔几秒钟运行一次命令,使用\'tail\'和\'sed\'对输出文件的内容进行模式匹配。
在Mac上,我的最佳选择是什么,是否可以在不下载软件的情况下完成?
admin 更改状态以发布 2023年5月23日
我正在寻找在Mac OS X上复制Linux \'watch\'命令的最佳方法。我想每隔几秒钟运行一次命令,使用\'tail\'和\'sed\'对输出文件的内容进行模式匹配。
在Mac上,我的最佳选择是什么,是否可以在不下载软件的情况下完成?