I want to find a particular process using awk:
ps aux|awk '/plugin-container.*Flash.*/'
Now it finds the process, but it includes itself in the results, because ps results include them as well. To prevent that, I am trying to use negative look behind as follows:
ps aux|awk '/(\?<!awk).*plugin-container.*Flash.*/'
But it does not work. Does awk support look behind? What am I doing wrong? Thanks
The common trick is to use
ps aux | grep '[p]lugin-container.*Flash.*'
The character class [p] prevents grep itself from being matched.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With