Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-18 00:18:35 +00:00
parent 9cdd033c95
commit a9720510d1
43 changed files with 362 additions and 132 deletions

View File

@@ -12,14 +12,14 @@ source: https://github.com/tldr-pages/tldr.git
`{{command}} | cut --{{characters|fields}} {{1|1,10|1-10|1-|-10}}`
- Print a [f]ield range of each line with a specific [d]elimiter:
- Print a field range of each line with a specific delimiter:
`{{command}} | cut --delimiter "{{delimiter}}" --fields {{1|1,10|1-10|1-|-10}}`
`{{command}} | cut {{[-d|--delimiter]}} "{{delimiter}}" {{[-f|--fields]}} {{1|1,10|1-10|1-|-10}}`
- Print a [c]haracter range of each line of the specific file:
- Print a character range of each line of the specific file:
`cut --characters {{1}} {{path/to/file}}`
`cut {{[-c|--characters]}} {{1}} {{path/to/file}}`
- Print specific [f]ields of `NUL` terminated lines (e.g. as in `find . -print0`) instead of newlines:
- Print specific fields of `NUL` terminated lines (e.g. as in `find . -print0`) instead of newlines:
`{{command}} | cut --zero-terminated --fields {{1}}`
`{{command}} | cut {{[-z|--zero-terminated]}} {{[-f|--fields]}} {{1}}`