snippetbashTip
yank — Read input from `stdin` and display a selection interface that allows a field to be selected and cop
Viewed 0 times
commandyankfromandreadclistdininput
Problem
How to use the
yank command: 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>.Solution
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}} | yankYank an entire line:
{{sudo dmesg}} | yank -lYank using a specific delimiter:
{{echo hello=world}} | yank -d {{=}}Only yank fields matching a specific pattern:
{{ps ux}} | yank -g "{{[0-9]+}}"Code Snippets
Yank using the default delimiters (\f, \n, \r, \s, \t)
{{sudo dmesg}} | yankYank an entire line
{{sudo dmesg}} | yank -lYank using a specific delimiter
{{echo hello=world}} | yank -d {{=}}Only yank fields matching a specific pattern
{{ps ux}} | yank -g "{{[0-9]+}}"Context
tldr-pages: common/yank
Revisions (0)
No revisions yet.