- If the executable/symlink name is `tsvtk` the `-t` option for tab input is set.
- csvtk v0.22.0
- csvtk v0.21.0
- new command:
csvtk nrow/ncol
for printing number of rows or columns. - new command:
round
to round float to n decimal places. #112 csvtk headers
: file name and column index is optional outputted with new flag-v/--verbose
.csvtk dim
: new flags--tabluar
,--cols
,--rows
,-n/--no-files
.csvtk dim/ncol/nrow
: can handle empty files now. #108csvtk csv2json
#104:- new flag
-b/--blank
: do not convert "", "na", "n/a", "none", "null", "." to null - new flag
-n/--parse-num
: parse numeric values for nth column(s), multiple values are supported and "a"/"all" for all columns.
- new flag
csvtk xlsx2csv
: fix output for ragged table. #110csvtk join
: fix bug for joining >2 files.csvtk uniq
: new flag-n/--keep-n
for keeping first N records of every key.csvtk cut
: support repeatedly selecting columns. #106
- new command:
- csvtk v0.20.0
- new command
csvtk comb
: compute combinations of items at every row. - new command
csvtk sep
: separate column into multiple columns. #96 csvtk
:- list lines' number of illegal (
-I
) and empty (-E
) rows. #97 - new flag
--infile-list
for giving file of input files list (one file per line), if given, they are appended to files from cli arguments
- list lines' number of illegal (
csvtk join
:csvtk filter2
: fix bug when column names start with digits, e.g.,1000g2015aug
. Thank @VorontsovIE (#44)csvtk concat
: allow one input file. #98csvtk mutate
: new flag-R/--remove
for removing input column.
- new command
- csvtk v0.19.1
csvtk
:- fix checking file existence.
- show friendly error message when giving empty field like
csvtk cut -f a, b
.
csvtk summary
: fix err of q1 and q3. #90csvtk version
: making checking update optional.
- csvtk v0.19.0
- new commands by @bsipos:
watch
: online monitoring and histogram of selected field.corr
: calculate Pearson correlation between numeric columns.cat
: stream file and report progress.
csvtk split
: fix bug of repeatedly output header line when number of output files exceed value of--buf-groups
. #83csvtk plot hist
: new option--percentiles
to add percentiles to histogram x label. #88
- new commands by @bsipos:
- csvtk v0.18.2
csvtk replace/rename2/splitxlsx
: fix flag conflicts with global flag-I
since v0.18.0.csvtk replace/rename2
: removing shorthand flag-I
for--key-capt-idx
.csvtk splitxlsx
: changing shorthand flag of--sheet-index
from-I
to-N
.
- csvtk v0.18.1
- csvtk v0.18.0
csvtk
: add new flag--ignore-illegal-row
to skip illegal rows. #72csvtk summary
: add more textual/numeric operations. #64csvtk sort
: fix bug for sorting by columns with empty values. #70csvtk grep
: add new flag--delete-matched
to delete a pattern right after being matched, this keeps the firstly matched data and speedups when using regular expressions. #77
- csvtk v0.17.0
- new command:
csvtk add-header
andcsvtk del-header
for adding/deleting column names. #62
- new command:
- csvtk v0.16.0
- new command:
csvtk csv2json
: convert CSV to JSON format. - remove comand:
csvtk stats2
. - new command
csvtk summary
: summary statistics of selected digital fields (groupby group fields), usage and examples. #59 csvtk replace
: add flag--nr-width
: minimum width for {nr} in flag -r/--replacement. e.g., formating "1" to "001" by--nr-width 3
(default 1)csvtk rename2/replace
: add flag-A, --kv-file-all-left-columns-as-value
, for treating all columns except 1th one as value for kv-file with more than 2 columns. #56
- new command:
- csvtk v0.15.0
- csvtk v0.14.0
csvtk
: supporting multi-line fields by replacing multicorecsv with standard library encoding/csv, while losing support for metaline which was supported since v0.7.0. It also gain a little speedup.csvtk sample
: add flag-n/--line-number
to print line number as the first column ("n")csvtk filter2
: fix bug when column names start with digits, e.g.,1000g2015aug
(#44)csvtk rename2
: add support for similar repalecement symbols{kv} and {nr}
incsvtk replace
- csvtk v0.13.0
- new command
concat
for concatenating CSV/TSV files by rows #38 csvtk
: add support for environment variables for frequently used global flags #39CSVTK_T
for flag-t/--tabs
CSVTK_H
for flag-H/--no-header-row
mutate2
: add support for eval expression WITHOUT column index symbol, so we can add some string constants #37pretty
: better support for files with duplicated column names
- new command
- csvtk v0.12.0
- new command
collapse
: collapsing one field with selected fields as keys freq
: keeping orignal order of keys by defaultsplit
:- performance improvement
- add option
-G/--out-gzip
for forcing output gzipped file
- new command
- csvtk v0.11.0
- add command
split
to split CSV/TSV into multiple files according to column values - add command
splitxlxs
to split XLSX sheet into multiple sheets according to column values csvtk
, automatically check BOM (byte-order mark) and discard it
- add command
- csvtk v0.10.0
- add subcommand
xlsx2csv
to convert XLSX to CSV format grep
,filter
,filter2
: add flag-n/--line-number
to print line-number as the first columncut
: add flag-i/--ignore-case
to ignore case of column name
- add subcommand
- csvtk v0.9.1
csvtk replace
: fix bug when replacing with key-value pairs brought in v0.8.0
- csvtk v0.9.0
- 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!
- add subcommand
- csvtk v0.8.0
- 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"
.
- new command
- csvtk v0.7.1
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.- issues/13 seamlessly support for data with meta line of separator declaration used by MS Excel.
- fig bug of "stricter field checking" in v0.6.0 and v0.6.1 when using flag
- 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 include
cut
,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.
- csvtk v0.4.4
- add command
csvtk freq
: frequencies of selected fields - add lots of examples in usage page
- add command
- csvtk v0.4.3
- improvement of using experience: flag
-n
is not required anymore when flag-H
incsvtk mutate
- improvement of using experience: flag
- csvtk v0.4.2
- fix highlight bug of
csvtk grep
: if the pattern matches multiple parts, the text will be wrongly edited. - changes: disable highlight when pattern file given.
- change the default output of all ploting commands to STDOUT, now you can pipe the image to "display" command of Imagemagic.
- fix highlight bug of
- csvtk v0.4.1
- Nothing changed. Just fix the links due to inappropriate deployment of v0.4.0
- csvtk v0.4.0
- add flag for
csvtk replace
:-K
(--keep-key
) keep the key as value when no value found for the key. This is open in default in previous versions.
- add flag for
- csvtk v0.3.9
- fix bug: header row incomplete in
csvtk sort
result
- fix bug: header row incomplete in
- csvtk v0.3.8.1
- csvtk v0.3.8
- new feature:
csvtk cut
supports ordered fields output. e.g.,csvtk cut -f 2,1
outputs the 2nd column in front of 1th column. - new commands:
csvtk plot
can plot three types of plots by subcommands:csvtk plot hist
: histogramcsvtk plot box
: boxplotcsvtk plot line
: line plot and scatter plot
- new feature:
- csvtk v0.3.7
- fix a serious bug of using negative field of column name, e.g.
-f "-id"
- fix a serious bug of using negative field of column name, e.g.
- csvtk v0.3.6
csvtk replace
support replacement symbols{nr}
(record number) and{kv}
(corresponding value of the key ($1) by key-value file)
- csvtk v0.3.5.2
- add flag
--fill
forcsvtk join
, so we can fill the unmatched data - fix typo
- add flag
- csvtk v0.3.5.1
- fix minor bug of reading lines ending with
\r\n
from a dependency package
- fix minor bug of reading lines ending with
- csvtk v0.3.5
- fix minor bug of
csv2md
- add subcommand
version
which could check for update
- fix minor bug of
- csvtk v0.3.4
- fix bug of
csvtk replace
that head row should not be edited.
- fix bug of
- csvtk v0.3.3
- fix bug of
csvtk grep -t -P
- fix bug of
- csvtk v0.3.2
- fix bug of
inter
- fix bug of
- csvtk v0.3.1
- add support of search multiple fields for
grep
- add support of search multiple fields for
- csvtk v0.3
- add subcommand
csv2md
- add subcommand
- csvtk v0.2.9
- add more flags to subcommand
pretty
- fix bug of
csvtk cut -n
- add subcommand
filter
- add more flags to subcommand
- csvtk v0.2.8
- add subcommand
pretty
-- convert CSV to readable aligned table
- add subcommand
- csvtk v0.2.7
- fix highlight failing in windows
- csvtk v0.2.6
- fix one error message of
grep
- highlight matched fields in result of
grep
- fix one error message of
- csvtk v0.2.5
- fix bug of
stat
that failed to considerate files with header row - add subcommand
stat2
- summary of selected number fields - make the output of
stat
prettier
- fix bug of
- csvtk v0.2.4
- fix bug of handling comment lines
- add some notes before using csvtk
- csvtk v0.2.3
- add flag
--colnames
tocut
- flag
-f
(--fields
) ofjoin
supports single value now
- add flag
- csvtk v0.2.2
- add flag
--keep-unmathed
tojoin
- add flag
- csvtk v0.2
- finish almost functions
- csvtk v0.2.1
- fix bug of
mutate
- fix bug of