waako / dns-lookup

Simple bash script to get DNS/WHOIS info for a list of domain names output to a csv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with input

clawrie opened this issue · comments

Hi
My domains.txt file was created on a Windows pc so the script didn't work. I finally realised there was an extra carriage return after each of the domain names. Modifying to the following fixed...

while read domain_in
do
domain=echo $domain_in | tr -d '\r'