Skip to content

Commit

Permalink
Refine kill-matching command
Browse files Browse the repository at this point in the history
  • Loading branch information
bendilley committed Mar 1, 2024
1 parent ed7b1c8 commit 66a9801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/kill-matching
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ if (( ${#@} < 1 || ${#@} > 1 )); then
exit 2
fi

ps aux | grep "[^]]$1" | awk '{print $2}' | xargs kill
ps ax | grep "[^]]$1" | awk '{print $1}' | xargs kill

0 comments on commit 66a9801

Please sign in to comment.