Test Post

Please ignore

 

/**
 * Insert your code here
 */
 #!/usr/bin/env bash
 
 for i in $(echo "${LIST}"); do
	IP=$(nslookup $i | grep -iv 10.1.10.11 | grep -i address | cut -d ":" -f2 | tr -d '\r' | xargs echo)
	if [ -z ${IP} ]; then
		IP=COULD_NOT_FIND_IP_FIND_MANUALLY
	fi
	echo "$i,${IP}"
done

 


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.