Skip to content

Instantly share code, notes, and snippets.

@DevGW
Last active March 3, 2023 22:22
Show Gist options
  • Save DevGW/1fd6f9a4f83d88a7548b1950e1361c80 to your computer and use it in GitHub Desktop.
Save DevGW/1fd6f9a4f83d88a7548b1950e1361c80 to your computer and use it in GitHub Desktop.
Grep for and kill multiple processes with #awk #hha_ank
# kill errant resque workers processing billing files
ps xau |grep resque | grep -i billing | awk '{system("kill -9 $2")}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment