Daniel Falkenberg wrote: > > I have a script here that I want to be able to add a * next to all the > users in that I want with the UID of 45 in /etc/passwd. > > Example... > > test:x:530:45:Test Name:/home/test:/bin/false > test2:x:531:45:Test Name2:/home/test2:/bin/false
Your example has 45 for the GID _not_ UID. > I want... > > *test:x:530:45:Test Name:/home/test:/bin/false <--- With the * > test2:x:531:45:Test Name2:/home/test2:/bin/false Do want only a user with a UID of 530? perl -F: -i -ape'$F[3] == 45 && s/^/*/' /etc/passwd John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]