Skip to content

Releases: shenwei356/csvtk

csvtk v0.9.0 with bash-completion support

22 Jun 06:07
Compare
Choose a tag to compare

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

27 May 14:46
Compare
Choose a tag to compare

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

11 Apr 10:20
Compare
Choose a tag to compare

Changelog

  • csvtk plot box and csvtk plot line: fix bugs for special cases of input
  • compile with go1.8.1

csvtk v0.7.0

11 Mar 07:04
Compare
Choose a tag to compare
  • fig bug of "stricter field checking" in v0.6.0 and v0.6.1 when using flag -F/--fuzzy-fields

  • csvtk pretty and csvtk csv2md: add attention that
    these commands treat the first row as header line and require them to be unique.

  • csvtk stat renamed to csvtk stats, old name is still available as an alias.

  • csvtk stat2 renamed to csvtk 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

08 Mar 14:29
Compare
Choose a tag to compare
  • csvtk cut: minor bug: panic when no fields given. i.e., csvtk cut. All relevant commands have been fixed.

csvtk v0.6.0

05 Mar 05:55
Compare
Choose a tag to compare
  • 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, and uniq.
  • New command: csvtk filter2, filtering rows by artithmetic/string expressions like awk.

csvtk v0.5.0

25 Feb 16:12
Compare
Choose a tag to compare
  • csvtk cut: delete flag -n/--names, move it to a new command csvtk headers
  • new command: csvtk headers
  • new command: csvtk head
  • new command: csvtk sample

csvtk v0.4.6

08 Feb 01:47
Compare
Choose a tag to compare
  • csvtk grep: fix result highlight when flag -v is on.

csvtk v0.4.5

15 Jan 06:05
Compare
Choose a tag to compare
  • 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

29 Nov 07:21
Compare
Choose a tag to compare
  • add command csvtk freq: frequencies of selected fields
  • add lots of examples in usage page