Path: utzoo!utgpu!cunews!cognos!maklinm From: maklinm@cognos.UUCP (Maxwell Maklin) Newsgroups: comp.unix.shell Subject: Best way to change a field ina file Message-ID: <9735@cognos.UUCP> Date: 13 Jun 91 16:21:47 GMT Reply-To: maklinm@cognos.UUCP (Maxwell Maklin) Organization: Cognos Inc., Ottawa, Canada Lines: 9 Sorry, just a novice. I was wondering what is the preferred way to edit a field within a file. I suppose sed(1V) is the preferred choice, but I want to take a file as stdin, change a field and have the changed file be place on stdout. For example, how would one change "gcos-field" in the /etc/passwd file? Thanks, Max