Perl: Removing duplicated entry between two files

A rip of from a ripp one liner Perl solution.

I have two files, with more or less duplicated entries in both. SOltuion:


cat textfile | perl -ne '$H{$_}++ or print'
Source: http://stackoverflow.com/questions/746689/unix-tool-to-remove-duplicate-lines-from-a-file
/alak

Comments

Popular posts from this blog

Quick Dirty Script for Checking Oracle Data Gurad Gap and Emailing it

SAP SWPM Software Provision Manager SL Toolset 1.0 SP22 Startup Options

SAP SystemCopy - Activation of TCI Notes, DigiSIgn Gone Wrong