Skip to content

Instantly share code, notes, and snippets.

@de314
Created June 9, 2015 17:23
Show Gist options
  • Save de314/118589284ae51580aba0 to your computer and use it in GitHub Desktop.
Save de314/118589284ae51580aba0 to your computer and use it in GitHub Desktop.
Kill process using grep
#!/bin/bash
kill $(ps aux | grep community.yml | awk '{print $2}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment