LinuxCommandLibrary

yank

copy a line

TLDR

Yank using the default delimiters (\f, \n, \r, \s, \t)

$ [sudo dmesg] | yank
copy


Yank an entire line
$ [sudo dmesg] | yank -l
copy


Yank using a specific delimiter
$ [echo hello=world] | yank -d [=]
copy


Only yank fields matching a specific pattern
$ [ps ux] | yank -g "[[0-9]+]"
copy

Copied to clipboard