tldr/pages/linux/yank.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

427 B

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