mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:22:09 +02:00
added csvsort
This commit is contained in:
parent
0acdc5208d
commit
4746a7342c
1 changed files with 20 additions and 0 deletions
20
pages/common/csvsort.md
Normal file
20
pages/common/csvsort.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# csvsort
|
||||
|
||||
> Sorts CSV files.
|
||||
> Included in csvkit.
|
||||
|
||||
- Sort a CSV file by column 9:
|
||||
|
||||
`csvsort -c {{9}} {{data.csv}}`
|
||||
|
||||
- Sort a CSV file by the "name" column in descending order:
|
||||
|
||||
`csvsort -r -c {{name}} {{data.csv}}`
|
||||
|
||||
- Sort a CSV file by columns 2, then by column 4:
|
||||
|
||||
`csvsort -c {{2,4}} {{data.csv}}`
|
||||
|
||||
- Sort a CSV file without inferring data types:
|
||||
|
||||
`csvsort --no-inference -c {{columns}} {{data.csv}}`
|
Loading…
Add table
Reference in a new issue