Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!rutgers!bellcore-2!bellcore!rruxi.bae.bellcore.com!jayd From: jayd@rruxi.bae.bellcore.com (Jay Patel) Newsgroups: comp.lang.c Subject: Need Advice! Message-ID: <26103@bellcore.bellcore.com> Date: 16 Aug 90 14:41:35 GMT Sender: news@bellcore.bellcore.com Reply-To: jayd@rruxi.bae.bellcore.com (Jay Patel) Organization: Bell Communications Research Lines: 20 I need advice from someone out there for the following situtation. I have two large files each contains 3 fields separted by white space. Both files are sorted. I will get the input from the user for the field 1 and field 2. Then, I have to go find the record(s) that match the given inputs in both files. Then I have to compare both files using third field and finds the unique record. Is it a good idea to use find or grep command of unix instead of writting a search routine. Or is there a function in C which would do the search automatically? Any help or advice will be appreciated. Thanx in advance. +------------------------------------------------+ | Jay Patel: At Bellcore, we deliver Excellence | | INTERNET : jayd@cellar.bae.bellcore.com |