yank

Read input from stdin and display a selection interface that allows a field to be selected and copied to the clipboard.
More information.
{sudo dmesg} | yank
{sudo dmesg} | yank -l
{echo hello=world} | yank -d {=}
{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).
CC-BY