Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How to compare two files
I am inexpert with awk.
I tried with a K-shell to compare a  file against a sample file, record by
record and just a 16 char portion of each one, if both portions are equal
then I write out the full record to another file. It was very slow.
So my question, it's possible to do that in awk, but quite faster?.
I would appreciate any proposition. Thanks.

1) input file A  (size file A > 100000 records)
record A format (; field delimiter)  PLAS;SUB015678889F32442410R
;?;CCQ4567;?    ;6788797

^                                ^

|_______________|

key A

2)sample file B (size file B > 100000 records)
record B format (no field delimiter) CCU1001345789F46784544469
^
^

|_______________|

key B

3) IF key A .EQ. key B
THEN
PRINT RECORD A > OUT_FILE






Report this thread to moderator Post Follow-up to this message
Old Post
PU239
11-19-04 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

AWK archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:31 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.