jpalat / csvpurl

A tool for sampling a line from a CSV file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSVPurl

Simple command line tool to sample csv files. It matches the header with the contents of a particular line. The index starts with 0 as the first line AFTER the header.

Arguments

  • filename
  • line number

Example

$ cat inventory.csv
item,cost,qty
ball, 3.00, 23
bat, 16.00, 4
glove, 32.00, 5
helmet, 19.00, 15
$ ./csvpurl inventory.csv 3
item : glove
cost :  32.00
qty :  5

About

A tool for sampling a line from a CSV file.

License:MIT License


Languages

Language:Go 100.0%