Update cheatsheets

This commit is contained in:
ivuorinen
2024-05-06 00:14:09 +00:00
parent fbad21c3c7
commit b1ff90caa8
4 changed files with 25 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Download the same file from different mirrors and verify the checksum of the downloaded file:
`aria2c --checksum={{sha-256}}={{hash}} "{{url1}}" "{{url2}}" "{{urlN}}"`
`aria2c --checksum {{sha-256}}={{hash}} "{{url1}}" "{{url2}}" "{{urlN}}"`
- Download the URIs listed in a file with a specific number of parallel downloads:

View File

@@ -8,14 +8,18 @@ source: https://github.com/tldr-pages/tldr.git
> Cut out fields from `stdin` or files.
> More information: <https://www.gnu.org/software/coreutils/cut>.
- Print a specific character/field range of each line:
- Print a specific [c]haracter/[f]ield range of each line:
`{{command}} | cut --{{characters|fields}} {{1|1,10|1-10|1-|-10}}`
- Print a field range of each line with a specific delimiter:
- Print a [f]ield range of each line with a specific [d]elimiter:
`{{command}} | cut --delimiter "{{,}}" --fields {{1}}`
- Print a character range of each line of the specific file:
- Print a [c]haracter range of each line of the specific file:
`cut --characters {{1}} {{path/to/file}}`
- Print specific [f]ields of `NUL` terminated lines (e.g. as in `find . -print0`) instead of newlines:
`{{command}} | cut --zero-terminated --fields {{1}}`

View File

@@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
`fastfetch`
- Display system information without a logo and escape sequences:
`fastfetch --pipe`
- Fetch a specific structure:
`fastfetch --structure {{structure}}`

13
tldr/sunicontopnm Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# sunicontopnm
> Convert a Sun icon into a Netpbm image.
> More information: <https://netpbm.sourceforge.net/doc/sunicontopnm.html>.
- Convert a Sun icon into a Netpbm image:
`sunicontopnm {{path/to/input.ico}} > {{path/to/output.pbm}}`