Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created May 7, 2018 05:53
Show Gist options
  • Save stanwu/672bfae0e4f7e510576c9bd3dd3eeae4 to your computer and use it in GitHub Desktop.
Save stanwu/672bfae0e4f7e510576c9bd3dd3eeae4 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in `cat dingding.txt`
do
ip=`nslookup $i | grep Address | grep -v 8.8.8.8 | awk '{print $2}'`
echo $i
echo $ip
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment