Skip to content

attilarepka/csv-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv-compare

csv-compare is a cli difftool for csv files.

wordperms demo

Features

  • git diff like diffing of csv files
  • filter column prefixes for specific text

Installation

Archives of precompiled binaries for csv-compare are available for macOS and Linux.

Linux binaries are static executables.

If you're a Debian user (or a user of a Debian derivative like Ubuntu), then csv-compare can be installed using a binary .deb file provided in each csv-compare release.

$ curl -LO https://github.com/attilarepka/csv-compare/releases/download/0.1.0/csv-compare_0.1.0_amd64.deb
$ sudo dpkg -i csv-compare_0.1.0_amd64.deb

Building

csv-compare is written in Rust, so you'll need Rust installation in order to compile it. csv-compare compiles with Rust 1.70.0 (stable) or newer. In general, it tracks the latest stable release of the Rust compiler.

$ git clone https://github.com/attilarepka/csv-compare.git
$ cd csv-compare
$ cargo build --release

Usage

csv-compare provides a command-line interface with the following options:

Usage: csv-compare [OPTIONS] --orig-index <ORIG_INDEX> <ORIG> <DIFF>

Arguments:
  <ORIG>  Orig CSV file
  <DIFF>  Diff CSV file

Options:
      --orig-index <ORIG_INDEX>    Orig index of column to compare
      --diff-index <DIFF_INDEX>    Diff index of column to compare (optional, defaults to orig_index)
  -w, --with-prefix <WITH_PREFIX>  Search prefix of selected rows
      --with-headers               Whether CSV's have headers
  -h, --help                       Print help
  -V, --version                    Print version

Contributing

Contributions are welcome! Open a GitHub issue or pull request.

License

This project is licensed under the MIT license

About

difftool for csv files

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages