last part '] of the original line after 00:16:3E:CE:23:14' ] may vary to 00:16:3E:CE:23:14' ] or 00:16:3E:CE:23:14 ' ]
The second mac adrress of the line I need, 00:16:3E:FD:58:BB, must be different every time I run sed. Maybe just changing the last two characters BB to other two characters.
The [ ' and ' ] of both lines could be separated by some espaces, example [ ' or [' or ' ] or '] so you should not take this characters as a reference.
The Ip 167.xx.xx.xx and first mac address 00:16:3E:CE:23:14 are the same in two line. The second ip always is 10.1.1.1, and the second mac address must change every time I run sed command.
Sorry, but I'm still with the problem... As the source file change, I mean the position of ' ] or [ ', so I'm not able to change to the output I want. I've tried a couple of sed commands.