ShadowArch/UserScripts/whatismyip

3 lines
111 B
Bash
Executable File

#!/bin/bash
timeout 5 /usr/bin/elinks --dump whatismyipaddress.com | grep '/ip/' | head -n 1 | cut -f 5 -d '/'