From 1f3f9828c30ed355e071e33149576df78d2bc015 Mon Sep 17 00:00:00 2001 From: shigemk2 Date: Mon, 15 May 2017 23:14:30 +0900 Subject: [PATCH] Add pgrep cheatsheat --- cheat/cheatsheets/pgrep | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cheat/cheatsheets/pgrep diff --git a/cheat/cheatsheets/pgrep b/cheat/cheatsheets/pgrep new file mode 100644 index 0000000..54983a2 --- /dev/null +++ b/cheat/cheatsheets/pgrep @@ -0,0 +1,4 @@ +# Get a list of PIDs matching the pattern +pgrep example +# Kill all PIDs matching the pattern +pgrep example | xargs kill \ No newline at end of file