mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-29 04:21:03 +08:00
cut: add example (#20437)
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
|
||||
`{{command}} | cut {{[-d|--delimiter]}} " " {{[-f|--fields]}} -3`
|
||||
|
||||
- Do not print lines that do not contain the delimiter:
|
||||
|
||||
`{{command}} | cut {{[-d|--delimiter]}} "{{:}}" {{[-f|--fields]}} {{1}} {{[-s|--only-delimited]}}`
|
||||
|
||||
- Print specific fields of lines that use `NUL` to terminate lines instead of newlines:
|
||||
|
||||
`{{find . -print0}} | cut {{[-z|--zero-terminated]}} {{[-d|--delimiter]}} "{{/}}" {{[-f|--fields]}} {{2}}`
|
||||
|
||||
Reference in New Issue
Block a user