mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 22:22:09 +02:00

* pages*: improve page descriptions * ical: improve page description * cockpit-desktop: remove unneeded word from page description * nc: improve description wording --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
21 lines
488 B
Markdown
21 lines
488 B
Markdown
# csvsort
|
|
|
|
> Sort CSV files.
|
|
> Included in csvkit.
|
|
> More information: <https://csvkit.readthedocs.io/en/latest/scripts/csvsort.html>.
|
|
|
|
- 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 column 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}}`
|