Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by Bloodnok (Vicar)
on Jun 18, 2014 at 16:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1090318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found