Combining outputs?
Hi,
i'm new at shell scripting.. i need to combine different syntax outputs.
I try to get interface name with first syntax and ip add with second one..
ifconfig |grep -E 'flags' |grep -v lo |grep -v enc |awk -F":" '{print $1}'
ifconfig |grep -E 'inet' |grep -v inet6 | grep -v 127.0.0.1 |awk '{print $2}'
i need to combine their outputs like;
"İnterface name" "ip address"
i bet solution is too easy but i stuck D:
Please Help.. Thanks a lot..
|