in reply to file delta detection

My fellow monk has already provided a good perl solution. I just want to add that if you're on a unix box, your problem can be solved with a couple unix commands.
cut -f3 -d| X | sort > outx.txt; cut -f3 -d| Y | sort > outy.txt; comm outx.txt outy.txt;

Fair warning, I haven't tested these lines. There may be syntax typos. If there are, just read the man pages for cut, sort, and comm. Enjoy.

UPDATE: Simon provides a much more encompassing answer with unix solutions.

Replies are listed 'Best First'.
Re^2: file delta detection
by graff (Chancellor) on May 07, 2011 at 16:55 UTC
    There may be syntax typos.

    For sure. You need to put backslash in front of the pipe symbol when you intend to use it as a literal "vertical bar" character (or you could put quotes around it):

    cut -f3 -d\| X | sort > outx.txt cut -f3 -d'|' Y | sort > outy.txt
    Provided that part is done right, I prefer using "cut" rather than "awk" -- it's just easier (and probably faster).