Releases: shenwei356/csvtk
Releases · shenwei356/csvtk
csvtk v0.9.0 with bash-completion support
Changelog
- add subcommand
csvtk mutate2
: create new column from selected fields by awk-like artithmetic/string expressions - add new command
genautocomplete
to generate shell autocompletion script!
csvtk v0.8.0
Changelog
- new command
csvtk gather
for gathering columns into key-value pairs. csvtk sort
: support sorting by user-defined order.- fix bug of unselecting field: wrongly reporting error of fields not existing.
affected commands:cut
,filter
,fitler2
,freq
,grep
,inter
,mutate
,
rename
,rename2
,replace
,stats2
,uniq
. - update help message of flag
-F/--fuzzy-fields
. - update help message of global flag
-t
, which overrides both-d
and-D
.
If you want other delimiter for tabular input, use-t $'\t' -D "delimiter"
.
csvtk v0.7.1
Changelog
csvtk plot box
andcsvtk plot line
: fix bugs for special cases of input- compile with go1.8.1
csvtk v0.7.0
-
fig bug of "stricter field checking" in v0.6.0 and v0.6.1 when using flag
-F/--fuzzy-fields
-
csvtk pretty
andcsvtk csv2md
: add attention that
these commands treat the first row as header line and require them to be unique. -
csvtk stat
renamed tocsvtk stats
, old name is still available as an alias. -
csvtk stat2
renamed tocsvtk stats2
, old name is still available as an alias. -
#13 seamlessly support for data with meta line of separator declaration used by MS Excel, e.g.,
$ cat names_with_meta.csv sep=, id,first_name,last_name,username 11,"Rob","Pike",rob 2,Ken,Thompson,ken ... $ cat names_with_meta.csv | csvtk filter2 -f '$id > 2' sep=, id,first_name,last_name,username 11,Rob,Pike,rob 4,Robert,Griesemer,gri
csvtk v0.6.1
csvtk cut
: minor bug: panic when no fields given. i.e.,csvtk cut
. All relevant commands have been fixed.
csvtk v0.6.0
csvtk grep
: large performance improvement by discarding goroutine (multiple threads),
and keeping output in order of input.- Better column name checking and **stricter field checking,
fields out of range are not ignored now.
Affected commands includecut
,filter
,freq
,grep
,inter
,mutate
,
rename
,rename2
,replace
,stat2
, anduniq
. - New command:
csvtk filter2
, filtering rows by artithmetic/string expressions likeawk
.
csvtk v0.5.0
csvtk cut
: delete flag-n/--names
, move it to a new commandcsvtk headers
- new command:
csvtk headers
- new command:
csvtk head
- new command:
csvtk sample
csvtk v0.4.6
csvtk grep
: fix result highlight when flag-v
is on.
csvtk v0.4.5
-
csvtk join
: support the 2nd or later files with entries with same ID: e.g.:$ cat 1.csv name,attr foo,cool bar,handsome bob,beutiful $ cat 2.csv name,major bar,bioinformatics bob,microbiology bob,computer science $ cat 3.csv id,name,hobby 1,bar,baseball 2,bob,basketball 3,foo,football 4,wei,programming $ csvtk join 1.csv 2.csv | csvtk pretty name attr major bar handsome bioinformatics bob beutiful microbiology bob beutiful computer science $ csvtk join 1.csv 2.csv 3.csv -f name -k | csvtk pretty name attr major id hobby foo cool 3 football bar handsome bioinformatics 1 baseball bob beutiful microbiology 2 basketball bob beutiful computer science 2 basketball $ csvtk join 3.csv 1.csv 2.csv -f name -k | csvtk pretty id name hobby attr major 1 bar baseball handsome bioinformatics 2 bob basketball beutiful computer science 2 bob basketball beutiful computer science 3 foo football cool 4 wei programming
csvtk v0.4.4
- add command
csvtk freq
: frequencies of selected fields - add lots of examples in usage page