terminal - Is there a way to kill processes that are going to be listed after running grep -


for e.g. if have check glassfish processes running run following command:

ps aux | grep glassfish

now e.g. returns 4 processes glassfish occupying there way edit command , store in bash_profile kill processes output of running ps aux | grep glassfish

for e.g. if store alias in bash_profile killglass should kill processes returned when run ps aux | grep glassfish command terminal

i run mac(yosemite)

thanks in advance

you can use

pkill -f "glassfish"

instead of ps aux , grep


Comments