Skip to content

Instantly share code, notes, and snippets.

@danielchc
Created August 2, 2019 21:22
Show Gist options
  • Save danielchc/c160256a99d92d72ce73f617a0f3983f to your computer and use it in GitHub Desktop.
Save danielchc/c160256a99d92d72ce73f617a0f3983f to your computer and use it in GitHub Desktop.
for /f "skip=4 usebackq tokens=2" %%a in (`nslookup myip.opendns.com resolver1.opendns.com`) do echo %%a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment