有没有办法监视一个Linux命令的输出,而不必一遍又一遍的input。
我想做一些事情:
tail -f file.txt
但对于像这样的命令:
ps aux | grep httpd | wc
谢谢!
watch 'ps aux | grep httpd | wc'
while true do ps aux | grep httpd | wc sleep 10 done