logoalt Hacker News

gfalcaotoday at 4:52 AM0 repliesview on HN

Another trick that took me years to learn is to use `xargs -I` to split the results into "items"

For example

`ps aux | grep process-name | grep -v grep | awk '{ print $2 }' | xargs -Ieach kill -9 each`