Re: Easy way to programatically change /etc/passwd

From: pSeries AIX Geek (aixgeek@YAHOO.COM)
Date: Tue Mar 18 2003 - 10:43:20 EST


I don't want to change EVERY ! to a *, only certain
ones. I.e., suppose I've dumped 300 new entries to
/etc/passwd; I only want to change the ! for those 300
entries.

--- Bruce Whittaker <bwhittak@ENERGY.COM.AU> wrote:
> Will this fix your problem ?
>
> cat /etc/passwd | tr \! \* > new_passwd
>
> Just be aware that all exclamation marks will be
> altered so first make
> sure that no doubles exist.
>
> Bruce Whittaker,
> CASS Support,
> Extension 34193
> External (02) 9269 4193.

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:40 EDT