Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/htruong/grep-csv
Like grep but for headered CSV files
https://github.com/htruong/grep-csv
Last synced: about 1 month ago
JSON representation
Like grep but for headered CSV files
- Host: GitHub
- URL: https://github.com/htruong/grep-csv
- Owner: htruong
- Created: 2014-07-28T18:34:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-28T19:53:09.000Z (over 10 years ago)
- Last Synced: 2024-10-12T16:58:42.294Z (2 months ago)
- Language: Go
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
grep-csv
===This tool works like grep but it understands csv files.
Introduction
---Here is how it works:
$ wget http://www.ferc.gov/docs-filing/eqr/soft-tools/sample-csv/contract.txt
# get all contracts where seller_company_name is The Electric Company and prints out contract_execution_date
$ cat contract.txt | grep-csv -f "seller_company_name" -v "The Electric Company" -p "contract_execution_date"# get contracts where contract_id is C78 and prints out seller_company_name,customer_company_name,customer_duns_number,contract_affiliate
$ cat contract.txt | grep-csv -f "contract_id" -v "C78" -p "seller_company_name,customer_company_name,customer_duns_number,contract_affiliate"Install
--Make sure you have go installed. Get it on golang
$ go get github.com/htruong/grep-csv
That's all, folks!
Questions: [email protected]