View Single Post
Old 06-01-2020, 12:10 AM   #95
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by NiLuJe View Post
As for showing the IP, a bit of massaging on the output of ip ought to do it, something along the lines of ip addr show ${INTERFACE} to inet | grep inet | awk '{print $2}' | cut -f1 -d/ ought to do it...
I use: menu_item:main:IP Address:cmd_output:500:ifconfig | awk '/inet addr/{print substr($2,6)}'
geek1011 is offline   Reply With Quote