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
{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]+}"
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).