Getting my feet wet
I have two files - one (file1) formatted like this:
aa:bb:cc XXXXXX
dd:ee:ff YYYYYYYY
gg:hh:ii ZZZ
<and many other similar lines>
and the other (file2) formatted like this:
dd:ee:ff:mm:nno 1.2.3.4
<and many other similar lines>
I need to find the dd:ee:ff in the forst file, corresponding to the first three groupings in file2, line by line, than replace in file2 the grouping dd:ee:ff with YYYYYYYY ...
I have not done Perl in many years, but this is what I would have to resort to, if not able to learn awk
TIA,
Stef
I have two files - one (file1) formatted like this:
aa:bb:cc XXXXXX
dd:ee:ff YYYYYYYY
gg:hh:ii ZZZ
<and many other similar lines>
and the other (file2) formatted like this:
dd:ee:ff:mm:nno 1.2.3.4
<and many other similar lines>
I need to find the dd:ee:ff in the forst file, corresponding to the first three groupings in file2, line by line, than replace in file2 the grouping dd:ee:ff with YYYYYYYY ...
I have not done Perl in many years, but this is what I would have to resort to, if not able to learn awk
TIA,
Stef