data bases such as /etc/passwd

carl carl at bdaemon.UUCP
Fri Jun 14 00:44:12 AEST 1985


> 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



More information about the Comp.unix mailing list