Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: comparing 2 files and creating third file with uncommon content

by Bloodnok (Vicar)
on Jun 18, 2014 at 16:11 UTC ( #1090318=note: print w/ replies, xml ) Need Help??


in reply to comparing 2 files and creating third file with uncommon content

Whilst it may have been left as an exercise for the interested reader, in the pursuit of an expeditious result and as ArunBear has already suggested, there are readily available command line tools (on *NIX & Cygwin) e.g. join - something like

$ sort File_1 > File_1.sorted $ sort File_2 | join File_1.sorted - -v1 -v2 > file.diff

A user level that continues to overstate my experience :-))


Comment on Re: comparing 2 files and creating third file with uncommon content
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2015-04-01 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found
    past polls