diff options
| author | 2019-04-20 13:07:04 +0530 | |
|---|---|---|
| committer | 2019-04-20 13:07:04 +0530 | |
| commit | e1d8adce2f910caf3009e2a35032e76de73ba852 (patch) | |
| tree | c7d554bc04471b638022e4dd4d9cb257abc0c25f /plugins/ipinfo | |
| parent | d5107d28ac41201e764a168c43f2931b6d44854c (diff) | |
| download | nnn-e1d8adce2f910caf3009e2a35032e76de73ba852.tar.gz | |
Plugin ipinfo: fetch IP address and whois info
Diffstat (limited to 'plugins/ipinfo')
| -rwxr-xr-x | plugins/ipinfo | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/ipinfo b/plugins/ipinfo new file mode 100755 index 0000000..9ee1ca9 --- /dev/null +++ b/plugins/ipinfo @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +# Description: Shows the IP address and whois information. +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +IP=`curl -s ifconfig.me` + +whois "$IP" +echo your IP address is "$IP" + +read dummy |