mirror of
https://github.com/cheat/cheat.git
synced 2024-11-13 23:51:09 +01:00
Merge branch 'pgrep' of git://github.com/shigemk2/cheat into shigemk2-pgrep
This commit is contained in:
commit
921db35400
1 changed files with 4 additions and 0 deletions
4
cheat/cheatsheets/pgrep
Normal file
4
cheat/cheatsheets/pgrep
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Get a list of PIDs matching the pattern
|
||||
pgrep example
|
||||
# Kill all PIDs matching the pattern
|
||||
pgrep -f example | xargs kill
|
Loading…
Reference in a new issue