Files
cheatsheet-tldr/tldr/yank

27 lines
565 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# yank
> Read input from `stdin` and display a selection interface that allows a field to be selected and copied to the clipboard.
> More information: <https://manned.org/yank>.
- Yank using the default delimiters ( ,
,
, \s, ):
`{{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]+}}"`