Welcome, guest | Sign In | My Account | Store | Cart

Checks IPv4

Bash, 5 lines
1
2
3
4
5
wget -qO - http://internet.yandex.ru | grep IPv4 | awk '{print($2,$3)}'
# or
wget -qO - http://internet.yandex.ru | grep -oP 'IPv4:\s(\d+\.){3}\d+'
# or
lynx --dump http://internet.yandex.ru | grep IPv4 | awk '{print($2,$3)}'
Created by greg zakharov on Fri, 21 Jun 2013 (MIT)
Bash recipes (41)
greg zakharov's recipes (59)

Required Modules

  • (none specified)

Other Information and Tasks