Jul-19-2017, 08:48 PM
my question here
i have two files a and b.I want to search contents of file a in file b.and the out put to other file which contains only one word after line number.the two files are below:
File a:
5000cca025884d5
5000cca025a1ee6
File b:
0. c0t5000CCA025A1EE6Cd0 <preSUN30G-A2B0-279.40GB>
/scsi_vhci/disk@g5000cca025a1ee6c
1. c0t5000CCA025A28FECd0 <preSUN30G-A2B0-279.40GB>
i/disk@g5000cca025a28fec
2. c0t5000CCA0258BA1DCd0 <HsdfdsSUN30G-A2B0 cyl 46873 alt 2 hd 20 sec 625>
i/disk@g5000cca0258ba1dc
3. c0t5000CCA025884D5Cd0 <UN300G cyl 46873 alt 2 hd 20 sec 625> solaris
i/disk@g5000cca025884d5c
4. c0t5000CCA02592705Cd0 <UN300G cyl 46873 alt 2 hd 20 sec 625> solaris
i/disk@g5000cca02592705c
i have two files a and b.I want to search contents of file a in file b.and the out put to other file which contains only one word after line number.the two files are below:
File a:
5000cca025884d5
5000cca025a1ee6
File b:
0. c0t5000CCA025A1EE6Cd0 <preSUN30G-A2B0-279.40GB>
/scsi_vhci/disk@g5000cca025a1ee6c
1. c0t5000CCA025A28FECd0 <preSUN30G-A2B0-279.40GB>
i/disk@g5000cca025a28fec
2. c0t5000CCA0258BA1DCd0 <HsdfdsSUN30G-A2B0 cyl 46873 alt 2 hd 20 sec 625>
i/disk@g5000cca0258ba1dc
3. c0t5000CCA025884D5Cd0 <UN300G cyl 46873 alt 2 hd 20 sec 625> solaris
i/disk@g5000cca025884d5c
4. c0t5000CCA02592705Cd0 <UN300G cyl 46873 alt 2 hd 20 sec 625> solaris
i/disk@g5000cca02592705c