RE: [RMX:#] Re: [RMX:#] Re: [RMX:#] Re: How to compare two files

RE: [RMX:#] Re: [RMX:#] Re: [RMX:#] Re: How to compare two files

am 27.02.2007 08:44:35 von Reddy.Beri-Veera-ext

Hi,
Thanks for your information. I want output like this only. If I have
multiple lines I should take first line only.

Thanks and Regards
Reddy


-----Original Message-----
From: Nathan Haigh [mailto:n.haigh@sheffield.ac.uk]
Sent: 26 February 2007 17:46
To: Beri Veera-ext, Reddy
Cc: Thurn, Martin; Brian Raven; ActivePerl
Subject: [RMX:#] Re: [RMX:#] Re: [RMX:#] Re: How to compare two files and
update t o second fil e

Beri Veera-ext, Reddy wrote:
> Hi,
> In input.txt "56500000001295;A9" is existing 7 times. But in output.txt
> file I want only once. I don't want multiple times.
> So for this first I have to check either this "56500000001295;A9" is
> existing in output.txt or not. If it is not existing I have to write in
> output.txt or else I have go to another line.
>
> Thanks and Regards
> Reddy
>

Please supply the contents of the "output.txt" file once you have done
the merge. Please do not attempt to write the pseudocode for the
algorithm you want, as it is this you are having the problems with and
it doesn't make it easier to get your point across. For example, is this
what output you want at the end:
-- snip --
CADItem;56500000001295;A9;IMAN_Rendering;DirectModel;5650000 0001295-A1;jt;No
ne$.jt
CADItem;56500000001295;A4;IMAN_specification;TIFFDrawing;565 00000001295_dr01
;tif;56500000001295_dr01.tif
CADItem;56500000001295;A2;IMAN_specification;TIFFDrawing;565 00000001295_dr01
;tif;56500000001295_dr01.tif
CADItem;56500000001295;A3;IMAN_specification;TIFFDrawing;565 00000001295_dr01
;tif;56500000001295_dr01.tif
CADItem;56500000001295;A6;IMAN_specification;TIFFDrawing;565 00000001295_dr01
;tif;56500000001295_dr01.tif
CADItem;56500000001295;A7;IMAN_specification;UGMASTER;565000 00001295-A1;qaf;
images_preview.qaf
CADItem;56500000001295;A8;IMAN_specification;TIFFDrawing;565 00000001295_dr01
;tif;56500000001295_dr01.tif
-- snip --

If you have multiple occurrences in the input.txt file, which line
should be used? the first line encountered from the top of the file??

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [RMX:#] Re: [RMX:#] Re: [RMX:#] Re: How to compare two files

am 27.02.2007 09:28:20 von n.haigh

Beri Veera-ext, Reddy wrote:
> Hi,
> Thanks for your information. I want output like this only. If I have
> multiple lines I should take first line only.
>
> Thanks and Regards
> Reddy
>
>

I am still not clear what you want as your final output file! Please,
please clarify with an example output file!


_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs