Add f option

This commit is contained in:
shigemk2 2017-06-10 01:43:11 +09:00
parent 1f3f9828c3
commit 2d59026b0d

View File

@ -1,4 +1,4 @@
# Get a list of PIDs matching the pattern # Get a list of PIDs matching the pattern
pgrep example pgrep example
# Kill all PIDs matching the pattern # Kill all PIDs matching the pattern
pgrep example | xargs kill pgrep -f example | xargs kill