tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* how to modify passwd file
@ 2000-11-20 20:07 Jerry Brady
  0 siblings, 0 replies; only message in thread
From: Jerry Brady @ 2000-11-20 20:07 UTC (permalink / raw)
  To: tru64-unix-managers

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
find that user it goes to the home directory field on that line
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-20 20:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-20 20:07 how to modify passwd file Jerry Brady

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