Я бы хотел убить все процессы firefox из командной строки.
Например:
MacPro:huangr$ ps -x | grep 'firefox'
4147 ttys000 0:00.00 (firefox-bin)
4177 ttys000 0:00.00 (firefox-bin)
4234 ttys000 0:00.00 (firefox-bin)
4273 ttys000 0:00.00 (firefox-bin)
4282 ttys000 0:00.00 (firefox-bin)
4285 ttys000 0:00.00 (firefox-bin)
4298 ttys000 0:00.00 (firefox-bin)
4301 ttys000 0:00.00 (firefox-bin)
4304 ttys000 0:00.00 (firefox-bin)
4311 ttys000 0:00.00 (firefox-bin)
4317 ttys000 0:00.00 (firefox-bin)
4320 ttys000 0:00.00 (firefox-bin)
4338 ttys000 0:00.00 (firefox-bin)
4342 ttys000 0:00.00 (firefox-bin)
4377 ttys000 0:03.85 /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -foreground
4394 ttys000 0:05.54 /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -foreground
4471 ttys000 0:06.08 /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -foreground
4581 ttys002 0:04.92 /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -foreground
4607 ttys002 0:04.33 /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -foreground
4626 ttys002 0:05.04 /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -foreground
Я бы хотел убить их всех одним выстрелом, есть ли простой способ сделать это?
Спасибо.