Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-27 00:21:46 +00:00
parent 69350c28ac
commit cdc8040fcb
33 changed files with 274 additions and 40 deletions

View File

@@ -16,14 +16,14 @@ source: https://github.com/tldr-pages/tldr.git
`csvtool {{[-c|--column]}} {{2,4}} {{path/to/file.csv}}`
- Extract lines from a CSV file where the second column exactly matches 'Foo':
- Extract lines from a CSV file where the second column exactly matches `Foo`:
`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^Foo$}}' {{path/to/file.csv}}`
- Extract lines from a CSV file where the second column starts with 'Bar':
- Extract lines from a CSV file where the second column starts with `Bar`:
`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^Bar}}' {{path/to/file.csv}}`
- Find lines in a CSV file where the second column ends with 'Baz' and then extract the third and sixth columns:
- Find lines in a CSV file where the second column ends with `Baz` and then extract the third and sixth columns:
`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{Baz$}}' {{path/to/file.csv}} | csvtool {{[-e|--no-header]}} {{[-c|--column]}} {{3,6}}`