Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
since when I tried to use all my files as input, it gave me a subset of lines, but they were not all present in all files! So something must have gone wrong here...perl -ne 'print if ($seen{$_} .= @ARGV) =~ /10$/' FILE1 FILE2
so that it will be quick!for in in MY_FILES/*.txt; do perl ...... $i; done
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: find common lines in many files
by Corion (Patriarch) on Jul 11, 2011 at 09:33 UTC | |
|
Re: find common lines in many files
by happy.barney (Friar) on Jul 11, 2011 at 09:27 UTC | |
|
Re: find common lines in many files
by BrowserUk (Patriarch) on Jul 11, 2011 at 09:23 UTC | |
by BrowserUk (Patriarch) on Jul 11, 2011 at 09:45 UTC | |
by jethro (Monsignor) on Jul 11, 2011 at 09:56 UTC | |
by BrowserUk (Patriarch) on Jul 11, 2011 at 10:13 UTC | |
|
Re: find common lines in many files
by jethro (Monsignor) on Jul 11, 2011 at 09:53 UTC | |
|
Re: find common lines in many files
by planetscape (Chancellor) on Jul 11, 2011 at 10:38 UTC | |
|
Re: find common lines in many files
by JavaFan (Canon) on Jul 11, 2011 at 11:21 UTC | |
|
Re: find common lines in many files
by amcglinchy (Novice) on Jul 11, 2011 at 13:51 UTC | |
|
Re: find common lines in many files
by i5513 (Pilgrim) on Jul 11, 2011 at 13:37 UTC |