mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 05:58:57 +00:00
Update cheatsheets
This commit is contained in:
26
yank
Normal file
26
yank
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user