![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|