csvcut

csvcut

TLDR

Print indices and names of all columns

>_ csvcut -n [data.csv]
copy

Extract the first and third columns

>_ csvcut -c [1,3] [data.csv]
copy

Extract all columns **except** the fourth one

>_ csvcut -C [4] [data.csv]
copy

Extract the columns named "id" and "first name" (in that order)

>_ csvcut -c [id,"first name"] [data.csv]
copy

Copied to clipboard
free 100$ digital ocean credit