mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 02:18:01 +01:00
20 lines
427 B
Markdown
20 lines
427 B
Markdown
|
# 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]+"}}`
|