Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: find common data in multiple files

by thanos1983 (Vicar)
on Dec 29, 2017 at 14:44 UTC ( #1206418=note: print w/replies, xml ) Need Help??

in reply to Re: find common data in multiple files
in thread find common data in multiple files

Hello BillKSmith,

I had no idea, great module thanks for pointing it also to us.

Just to include a complete answer for future reference I will also add sample of code.

#!/usr/bin/perl use strict; use warnings; use Capture::Tiny 'capture'; my $cmd = 'setop --intersect ' . join ' ', @ARGV; my ($stdout, $stderr, $exitCode) = capture { system( $cmd ); }; print $stdout if $exitCode == 0; print 'Error: ' . $stderr unless $exitCode == 0; __END__ $ perl File1.txt File2.txt File3.txt ID121 ABC14 ID122 EFG87 ID157 TSR11

BR / Thanos

Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1206418]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2018-06-21 01:02 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.