Skip to content

Instantly share code, notes, and snippets.

@sashaaro
Created October 27, 2019 11:45
Show Gist options
  • Save sashaaro/564d3c0a03ced281a88012af6156289a to your computer and use it in GitHub Desktop.
Save sashaaro/564d3c0a03ced281a88012af6156289a to your computer and use it in GitHub Desktop.
kill process with grep
kill -9 $(ps -ax | grep "go run" | awk '/^ ([0-9])/{print $1}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment