I would like some advice on how to logically put together a script to handle a daily task of data gathering for the following problem.
I have two files, file1 has 125,000 records that I cut and remove unwanted fields through scripts and cron. In file2, I have 25000 records that has the same data as file1 plus one extra field of data. I would like the records from file2 (25,000) to replace entries in file1 with the extra data which would then be file3.
I hope I can express this clearly and appreicate any help.
Eample:
file1
00:01:A6:A9:3A:7E|20070103_120040|1|8|0|0|
00:0A:73:1F:13:54|20070103_120041|1|8|0|0|
00:40:7B:D6:74:E8|20070103_120041|1|8|0|0|
file2
00:01:A6:A9:3A:7E|20070103_120040|1|8|0|0|6 days
00:0A:73:1F:13:54|20070103_120041|1|8|0|0|37 day
00:40:7B:D6:74:E8|20070103_120041|1|8|0|0|24 days
file3
00:01:A6:A9:3A:7E|20070103_120040|1|8|0|0|6 days
00:0A:73:1F:13:54|20070103_120041|1|8|0|0|37 day
00:40:7B:D6:74:E8|20070103_120041|1|8|0|0|24 days
00:0A:73:25:B9:EC|20070103_120039|1|7|0|0|
00:01:A6:96:48:60|20070103_120040| | | | |
00:01:A6:A9:3A:7E|20070103_120040|1|8|0|0|
00:0A:73:1F:13:54|20070103_120041|1|8|0|0|
00:40:7B:D6:74:E8|20070103_120041|1|8|0|0|
00:0A:73:23:BA:A8|20070103_120042| | | | |