[root@ilan ~]# cat test
mpath0:253:8:L--w:0:1:2:mpath-2000b080008002158
mpath19:253:7:L--w:0:1:1:mpath-2000b080013002158
mpath21:253:9:L--w:0:1:0:mpath-2000b080015002158
mpath18:253:6:L--w:0:1:1:mpath-2000b080012002158
mpath12:253:1:L--w:0:1:2:mpath-2000b080009002158
[root@ilan ~]#
The above is the i/p and the desired o/p is below...
[root@pillar32 ~]# cat test
mpath0:2000b080008002158
mpath19:2000b080013002158
mpath21:2000b080015002158
mpath18:2000b080012002158
mpath12:2000b080009002158
[root@pillar32 ~]#
tried with cut and then sed...but, don't want to do more piping!!
Thanks in advance.
-ilan