Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a problem which I'm a bit stumped on. Your help would be most appreciated
I have two files (this is a *nix platform)
I need to be able to update file1 and increment the number in it by 1 if the corresponding animal exists in file2file1 ------ rabbit 1 hen 0 pig 2 cow 2 sheep 5 file2 ----- rabbit feed 10kg used on 21/10/2005 by consumer1 cow feed 100kg used on 11/11/2005 by consumer1 sheep feed 50kg used on 24/11/2005 by consumer3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: update values in one file from another
by GrandFather (Saint) on Dec 07, 2005 at 09:29 UTC | |
by Anonymous Monk on Dec 07, 2005 at 10:27 UTC | |
|
Re: update values in one file from another
by Hue-Bond (Priest) on Dec 07, 2005 at 09:59 UTC | |
by GrandFather (Saint) on Dec 07, 2005 at 10:13 UTC | |
by Hue-Bond (Priest) on Dec 07, 2005 at 11:06 UTC | |
by Anonymous Monk on Dec 08, 2005 at 09:50 UTC | |
by Anonymous Monk on Dec 08, 2005 at 10:15 UTC | |
by Anonymous Monk on Dec 08, 2005 at 10:39 UTC | |
|
Re: update values in one file from another
by secret (Beadle) on Dec 07, 2005 at 10:00 UTC |