1.0.2 • Published 7 years ago
dig-csv v1.0.2
dig-csv
Command Line Util for Dig'ing IPs in CSV Files
Requires
node
(Installation instructions available here)dig
available in system path
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 locatedin-csv-file-path
: path to csv file that contains columns with IP Addressesout-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