189
22
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!
3
What if the pipeline also contains quotes (such as
– OrangeDog – 2018-06-06T16:28:22.207awk '{print $3}'
)? Edit: Like this3you can escape those chars with \ , ie
watch -n 'awk \'{print $3}\''
– lev – 2018-09-21T10:44:07.873