dedupcsv

command
v0.0.0-...-278b3e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 6 Imported by: 0

README

Dedupcsv

This utility removed duplicate rows. The input must be sorted!

Use -help to show:

$ dedupcsv -help
Help Message

Usage: dedupcsv [options]
NOTE: must be sorted; only compares row against prior row.  -headers
        CSV has headers (default true)
  -help
        Show help message
  -i string
        Input CSV filename; default STDIN
  -keep
        Keep CSV headers on output (default true)
  -o string
        Output CSV filename; default STDOUT

For example:

$ cat test1.csv 
A,B,C
1,2,3
1,2,3
4,5,6
4,5,6
d,e,f
d,e,f
d,e,f
$ go run dedupcsv.go < test1.csv 
A,B,C
1,2,3
4,5,6
d,e,f
$

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL