I have two file one will have WWN and port details and another file will have allies name. I need to check what allies name was given to each wwn and create a consolidate report which will both port details, allies name.
file one switchshow
133 1 21 188500 id N4 Online FC F-Port 10:00:00:00:c9:67:51:4b
134 1 22 188600 id N4 Online FC F-Port 10:00:00:90:fa:0c:aa:e7
File two alishow
cat alishow |grep -B1 10:00:00:00:c9:67:51:4b |grep alias
alias: hostname_01
I need output like this
133 1 21 188500 id N4 Online FC F-Port 10:00:00:00:c9:67:51:4b; alias: hostname_01