08-10-2008
19,
0
Join Date: Aug 2008
Last Activity: 9 June 2009, 6:41 AM EDT
Posts: 19
Thanks Given: 0
Thanked 0 Times in 0 Posts
conjunction two files
I need to your help. I want write a script search for rows in file1 if exist in file2 it will print rows from file2 else it will print rows from file1 with out any duplicate
Example:
file1
4599207
47182983
46900870
21015724
63358010
222222
33333
file2
4599207 ,20070914 ,abc
47182983,20080513 ,abc
46900870,20080513 ,abc
21015724,20080617 ,abc
63358010,20080520 ,abc
25985516,20080624 ,abc
92829623,20080712 ,abc
58015436,20080629 ,abc
53139549,20080629 ,abc
21644907,20080617 ,abc
82325402,20080707 ,abc
82325406,20080707 ,abc
82325404,20080707 ,abc
82325405,20080707 ,abc
Output
4599207 ,20070914 ,abc
47182983,20080513 ,abc
46900870,20080513 ,abc
21015724 20080617 ,abc
63358010,20080520 ,abc
222222
33333