1.0.2 • Published 7 years ago

dig-csv v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

dig-csv

Command Line Util for Dig'ing IPs in CSV Files

Requires

Install

npm install -g dig-csv

Usage

dig-csv <csv-header> <in-csv-file-path> [<out-csv-file-path>]
  • csv-headers: headers in csv where IP Address are located
  • in-csv-file-path: path to csv file that contains columns with IP Addresses
  • out-csv-file-path: (optional) specify file path place modified file. If this parameter is ommitted, output will be to console.

Example Use:

dig-csv source_ip,dest_ip mycsvfile1.csv out.csv
dig-csv ipAddress mycsvfile1.csv

Example Input CSV

src_ip,dest_ip,transport,dest_port
192.168.10.54,192.168.10.1,udp,53
192.168.10.1,192.168.10.54,udp,53
192.168.10.80,192.168.10.1,udp,53

Example Output CSV

src_ip,dest_ip,transport,dest_port,src_ip_host,dest_ip_host
192.168.10.54,192.168.10.1,udp,53,test1.domain.com,router.domain.com
192.168.10.1,192.168.10.54,udp,53,router.domain.com,test1.domain.com
192.168.10.80,192.168.10.1,udp,53,test2.domain.com,router.domain.com
1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago