From e7fc4be71ab7b9b5c35a32855671e0653bc40647 Mon Sep 17 00:00:00 2001 From: monsieurlo Date: Sun, 4 Mar 2018 09:48:03 +0100 Subject: [PATCH] yank: add page (#2013) --- pages/linux/yank.md | 19 +++++++++++++++++++ pages/osx/yank.md | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 pages/linux/yank.md create mode 100644 pages/osx/yank.md diff --git a/pages/linux/yank.md b/pages/linux/yank.md new file mode 100644 index 0000000000..d44aed7adc --- /dev/null +++ b/pages/linux/yank.md @@ -0,0 +1,19 @@ +# yank + +> Read input from stdin and display a selection interface that allows a field to be selected and copied to the clipboard. + +- Yank using the default delimiters (\f, \n, \r, \s, \t): + +`{{sudo dmesg}} | yank` + +- Yank an entire line: + +`{{sudo dmesg}} | yank -l` + +- Yank using a specific delimiter: + +`{{echo hello=world}} | yank -d {{=}}` + +- Only yank fields matching a specific pattern: + +`{{ps ux}} | yank -g {{"[0-9]+"}}` diff --git a/pages/osx/yank.md b/pages/osx/yank.md new file mode 100644 index 0000000000..d44aed7adc --- /dev/null +++ b/pages/osx/yank.md @@ -0,0 +1,19 @@ +# yank + +> Read input from stdin and display a selection interface that allows a field to be selected and copied to the clipboard. + +- Yank using the default delimiters (\f, \n, \r, \s, \t): + +`{{sudo dmesg}} | yank` + +- Yank an entire line: + +`{{sudo dmesg}} | yank -l` + +- Yank using a specific delimiter: + +`{{echo hello=world}} | yank -d {{=}}` + +- Only yank fields matching a specific pattern: + +`{{ps ux}} | yank -g {{"[0-9]+"}}`