RE: Matching Billing Numbers

From: Alistair McKeown (Alistair.Mckeown@jacobsrimell.com)
Date: Tue May 03 2005 - 07:24:59 EDT


Hi,
        Sorted many thanks for all your help seems theres a few ways of
doing it.

It worked by putting both files into one file, sorting them, then using uniq
-u which takes out lines which are not repeated.

Cat file1 > testfile
Cat file2 >> testfile
Sort testfile
Uniq -u testfile

-----Original Message-----
From: Alistair McKeown
Sent: 03 May 2005 11:59
To: sunmanagers@sunmanagers.org
Subject: Matching Billing Numbers

Hi there,

        I have two files containing billing numbers what I want to do is to
get the billing numbers out of the first file which don't exist in the 2nd
file.
        Even with a sort and a diff, this still doesn't work, is there some
sed or awk command which would do the trick. I.e it takes the first line of
the file and tries to match it to any lines in the 2nd. If it can't it
prints it out.

Alistair.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:38 EDT