csvq

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

csvq

GoDoc Build Status Coverage Status Go Report Card Apache 2 License

csvq is a CLI package for parsing and transforming CSV files. This is useful because often trimming down a CSV file can make processing it easier.

Install

Download the latest release for your architecture.

Usage

Extract first_name and last_name columns (in that order). Sort results.

csvq -keep first_name,last_name ~/Downloads/report.csv | sort -u

Change delimiter used in report.csv.

csvq -d';' user_id,dob,email ~/Downloads/report.csv

Output CSV columns in a table.

csvq -keep first_name,last_name -format table

Combine multiple files.

csvq -keep user_id,email ~/Downloads/report1.csv ~/Downloads/report2.csv

Supported and tested platforms

  • 64-bit Linux (Ubuntu, Debian), macOS, and Windows

License

Apache License 2.0 - See LICENSE for details.

Documentation

Index

Constants

View Source
const Version = "v1.0.0"

Variables

This section is empty.

Functions

func Help

func Help()

Types

This section is empty.

Directories

Path Synopsis
cmd
internal
cli

Jump to

Keyboard shortcuts

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