tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Jerry Brady <jerry.brady () faypwc ! com>
To: tru64-unix-managers
Subject: script to modify passwd file
Date: Mon, 20 Nov 2000 20:12:30 +0000	[thread overview]
Message-ID: <97475103618734.tru64-unix-managers.marc@archive.invalid> (raw)

Managers:
     I'm trying to write a script in the korn shell that will search the
/etc/passwd file for a username that starts with the letters pwc, when it
finds that user it goes to the home directory field on that line, field
number 6
and changes it from what it is to /auth/users/username.  
For example here is a line in the passwd file:
pwcblgl:*:225:50:Gale Liles:/homeg/pwcblgl:/bin/ksh
and I would like to change it to look like this:
pwcblgl:*:225:50:Gale Liles:/auth/users/pwcblgl:/bin/ksh

Thanks
Jerry

                 reply	other threads:[~2000-11-20 20:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox