Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site bdaemon.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!hao!nbires!bdaemon!carl From: carl@bdaemon.UUCP (carl) Newsgroups: net.unix Subject: Re: data bases such as /etc/passwd Message-ID: <298@bdaemon.UUCP> Date: Thu, 13-Jun-85 10:44:12 EDT Article-I.D.: bdaemon.298 Posted: Thu Jun 13 10:44:12 1985 Date-Received: Mon, 17-Jun-85 04:36:00 EDT References: <448@cmu-cs-k.ARPA> Organization: Daemon Assoc., Boulder, CO Lines: 12 > I am working on a program which will have a data base similar to /etc/passwd > or /etc/inittab. Are there any libraries which support these type of files? > Specifically, I would like to be able to search for a record based on a > certain key, and ask for the nth field in that record. Why not: grep key file | awk -F: 'print $n' where $n is the nth field? Cral Brandauer