Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site chemabs Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!cbosgd!chemabs!bobr From: bobr@chemabs (bobr) Newsgroups: net.lang.c Subject: C and AWK questions Message-ID: <134@chemabs> Date: Sun, 12-Aug-84 10:41:58 EDT Article-I.D.: chemabs.134 Posted: Sun Aug 12 10:41:58 1984 Date-Received: Tue, 14-Aug-84 02:47:55 EDT Organization: Chem Abs Serv, Columbus OH Lines: 27 We would appreciate information from anyone who has found an answer to the following problems: We are searching for debugging techniques to track down malloc/realloc aborts. Occasionally, our programs get memory faults within the stdio's _flsbuf() subroutine. Does anyone have hints on tracking down the types of things that would clobber the malloc buffers? Does anyone have a routine which performs the same expansion on its argument as does the Bourne shell? That is, would expand [], ?, *, [!] into appropriate file names? Does anyone know of a way to invoke a program from within AWK, passing it one or more awk variables, and then trapping its output into another awk variable? Does anyone know how to get input from multiple files simultaneously from within an awk program? We have a file which contains lines which are duplicates. We want to be able to get only one occurance of these lines. Is there a way to tell one of the versions of grep to find the pattern and obtain only the first (or last) hit found? Thanks in advance, Bob Richards (...cbosgd!chemabs!bobr) Chemical Abstracts Service (614) 421-3600 X2486