Using watch with pipes
Posted
by Tom
on Super User
See other posts from Super User
or by Tom
Published on 2010-05-12T19:23:47Z
Indexed on
2010/05/12
19:25 UTC
Read the original article
Hit count: 247
Hi!
I'd like to run this command:
watch -n 1 tail -n 200 log/site_dev.log | grep Doctrine
But it does not run, because "I think" that the grep tries to run on the watch instead of the tail...
Is there a way to do something like
watch -n 1 (tail -n 200 log/site_dev.log | grep Doctrine)
Thanks a lot!
© Super User or respective owner