AIX: how to use egrep to search the maching pattern?

I’m looking for how to use egrep or grep to complete my task. I want to show the last line of each interfaces. I tried to use grep and egrep with option but the result didn’t mach my expectation. ifconfig -a en0: flags=1e080863,480<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),CHAIN> inet 10.x.x.x netmask 0xffffff80 broadcast 10.x.x.x tcp_sendspace 16384 tcp_recvspace 16384 rfc1323 0…

Details