2018-03-04 08:48:03 +00:00
|
|
|
# yank
|
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
> Read input from `stdin` and display a selection interface that allows a field to be selected and copied to the clipboard.
|
2021-10-26 03:26:19 +01:00
|
|
|
> More information: <https://manned.org/yank>.
|
2018-03-04 08:48:03 +00:00
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
2020-10-04 18:33:38 +01:00
|
|
|
`{{ps ux}} | yank -g "{{[0-9]+}}"`
|