mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-14 18:59:46 +00:00
Update cheatsheets
This commit is contained in:
@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print indices and names of all columns:
|
||||
|
||||
`csvcut -n {{data.csv}}`
|
||||
`csvcut {{[-n|--names]}} {{data.csv}}`
|
||||
|
||||
- Extract the first and third columns:
|
||||
|
||||
`csvcut -c {{1,3}} {{data.csv}}`
|
||||
`csvcut {{[-c|--columns]}} {{1,3}} {{data.csv}}`
|
||||
|
||||
- Extract all columns except the fourth one:
|
||||
|
||||
`csvcut -C {{4}} {{data.csv}}`
|
||||
`csvcut {{[-C|--not-columns]}} {{4}} {{data.csv}}`
|
||||
|
||||
- Extract the columns named "id" and "first name" (in that order):
|
||||
|
||||
`csvcut -c {{id,"first name"}} {{data.csv}}`
|
||||
`csvcut {{[-c|--columns]}} {{id,"first name"}} {{data.csv}}`
|
||||
|
||||
Reference in New Issue
Block a user