awk with conditions

Hi All,

I have a file with below contents.

"en2"/10.185.81.0:cluster_interconnect,"en5"/10.185.81.0:cluster_interconnect,"en6"/169.181.146.0:public

I want to take the interface name from the file and convert it as ipaddress using ifconfig command get the output like below

 
en6 -> public -> <Ipaddress>
en2 -> Private 1 -> <Ipaddress>
en5 -> Private 2 -> <Ipaddress>

Regards
Kannan

Looks pretty much similar to your previous thread. Corona668's remarks in there still apply. How do you get the desired output based the input data given? Is the input file one line or multiple lines, how do we tell Private 1 from Private 2? Please be more specific.

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.

Continue here!