Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script to return your public IP from duckduckgo
#!/bin/bash
curl -fs "https://api.duckduckgo.com/?q=ip&format=json" | jq -r '.Answer' | awk '{print $5}'
@mrryanjohnston
Copy link
Author

mrryanjohnston commented May 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment