From 1f3f9828c30ed355e071e33149576df78d2bc015 Mon Sep 17 00:00:00 2001 From: shigemk2 Date: Mon, 15 May 2017 23:14:30 +0900 Subject: [PATCH 1/2] 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 From 2d59026b0dd1f9dc4cd4d071bb44e96f47939349 Mon Sep 17 00:00:00 2001 From: shigemk2 Date: Sat, 10 Jun 2017 01:43:11 +0900 Subject: [PATCH 2/2] Add f option --- cheat/cheatsheets/pgrep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat/cheatsheets/pgrep b/cheat/cheatsheets/pgrep index 54983a2..a4d13bf 100644 --- a/cheat/cheatsheets/pgrep +++ b/cheat/cheatsheets/pgrep @@ -1,4 +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 +pgrep -f example | xargs kill \ No newline at end of file