System Grab Bag

View all TLDR pages from common (or from all pages)

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

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.