great_riyaz has asked for the wisdom of the Perl Monks concerning the following question:
I need help with perl code to fill in @common_lines.$file1 = "./data/list1.txt"; $file1 = "./data/list2.txt"; @common_lines = `grep -Fx -f $file1 $file2 | grep .tst`;
test1.tst not_run test3.tst time:2 sec test6.tst time:2 sec
...upto 100000 entries.test2.tst time:3 sec test3.tst time:6 sec test1.tst time:5 sec
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extract common lines from 2 files
by jwkrahn (Abbot) on May 10, 2012 at 08:09 UTC | |
|
Re: Extract common lines from 2 files
by Marshall (Canon) on May 10, 2012 at 10:05 UTC | |
|
Re: Extract common lines from 2 files
by great_riyaz (Initiate) on May 11, 2012 at 09:38 UTC | |
|
Re: Extract common lines from 2 files
by Anonymous Monk on May 10, 2012 at 20:16 UTC | |
by Anonymous Monk on May 10, 2012 at 20:23 UTC | |
by Hellhound4 (Novice) on May 11, 2012 at 00:02 UTC |