I have the following two files. Please help me with awk script ,which will grab corresponding ip in file2 for each entry in file1. so the out put should like this:
Thanks,
10.1.1.1 abc00def
10.1.1.2 abc00dee
10.1.1.3 abc00deg
10.1.1.4 abc00deg
10.1.1.5 abc00der
10.1.1.6 abc00det
10.1.1.7 abc00dep
10.1.1.8 abc00deq
10.1.1.9 abc00dep
File1:
abc00def
abc00dee
abc00deg
abc00deg
abc00der
abc00det
abc00dep
abc00deq
abc00dep
File2:
10.1.1.1 abc00def
10.1.1.2 abc00dee
10.1.1.3 abc00deg
10.1.1.4 abc00deg
10.1.1.5 abc00der
10.1.1.6 abc00det
10.1.1.7 abc00dep
10.1.1.8 abc00deq
10.1.1.9 abc00dep
10.1.1.5 ber00tys
10.2.1.1 ver00mrt
10.1.1.9 yer00tys
10.2.1.5 zer00mrt