j
k
j a
j l
local ip=$(ipmitool lan print | awk 'NR==3{print $4}') [ -n "$ip" ] && echo "ipmi_ip:" $ip
Changed to that. Still NR==3 looks a bit fragile.
Thanks, Fengguang
Back to the thread
Back to the list