I did discover that if I use
Code: Select all
${wireless_ap wlan0}
Thanks!
Fred
Code: Select all
${wireless_ap wlan0}
Code: Select all
ip -o link show wlan0 | sed -r 's/^.*link\/ether ([^ ]*) .*$/\1/'
Code: Select all
$(ip -o link show wlan0 | sed -r 's/^.*link\/ether ([^ ]*) .*$/\1/')
Code: Select all
${exec ip -o link show wlan0 | sed -r 's/^.*link\/ether ([^ ]*) .*$/\1/'}
Code: Select all
MAC Addr $alignc${execi 300 ip -o link show eth0 | sed -r 's/^.*link\/ether ([^ ]*) .*$/\1/'}
Public IP $alignc${execi 300 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
Local IP $alignc${addr}
Sorry, xeno (and mzsade) I meant to mark it as solved later today. Anyhow, it's working quite well. Thanks!mzsade wrote: @Fred, Isn't this "Solved" for you yet?
I was in the same place. I haven't found a good online source to truly grasp sed but I got this book and it covers all aspects of sed and is very easy to read (and not too thick ): http://www.sed-book.com/mzsade wrote:This is once too often that i've exploited sed without knowing diddley-squat about it. Reading up on it is now among the first things on my procrastinator's to-do list.