chaney123 has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
So these are the example files that I have. I actually have thousand of lines of data in each files. To make it easier to read, I shorten it.
File_1 Item Availability Broken Laptop_Monitor 10 2 Laptop_Case 20 0 Laptop_Bag 25 1 Office_Chair 20 1 Mouse 10 0 Keyboard 10 0 File_2 Item Newly_order Ref_Name Laptop_Monitor 15 HMX-190B-F Laptop_Bag 20 BMT-1920-U Office_Chair 10 ORD-455_T
So From these the two files this is the output that I wish to have:
Can someone show me some head-ups on how to generate an output like this? I am new to Perl and this is the first assignment that I get.outfile_1 Item Availability Broken Newly_order Total_Stock Laptop_Monitor 10 2 15 (10-2+15) Laptop_Bag 25 1 20 (25-1+20) Office_Chair 20 1 10 (20-1+10)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to combine these two files?
by afoken (Chancellor) on Aug 29, 2017 at 06:09 UTC | |
by chaney123 (Acolyte) on Aug 29, 2017 at 07:48 UTC | |
by Corion (Patriarch) on Aug 29, 2017 at 08:14 UTC | |
by Laurent_R (Canon) on Aug 29, 2017 at 08:01 UTC | |
|
Re: How to combine these two files?
by thanos1983 (Parson) on Aug 29, 2017 at 08:16 UTC | |
|
Re: How to combine these two files?
by tybalt89 (Monsignor) on Aug 29, 2017 at 19:54 UTC | |
by afoken (Chancellor) on Aug 29, 2017 at 20:37 UTC |