1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 20:17:57 +01:00

yank: add page (#2013)

This commit is contained in:
monsieurlo 2018-03-04 09:48:03 +01:00 committed by Agniva De Sarker
parent 64b2d40c0e
commit e7fc4be71a
2 changed files with 38 additions and 0 deletions

19
pages/linux/yank.md Normal file
View file

@ -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]+"}}`

19
pages/osx/yank.md Normal file
View file

@ -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]+"}}`