> On 8/19/06, Dennis Clarke <[EMAIL PROTECTED]> wrote: >> >> >> grep -v root shadow > /tmp/rootless_shadow >> /usr/bin/echo "root::13380::::::" > root_stuff >> cat root_stuff rootless_shadow > new_shadow > > earlier i pressed reply instead of reply all in gmail, it happens :P > cant he use sed? > sed 's/^root:[^:]*:\(.*\)/root::\1/' /etc/shadow > ( please triple check that ) > should return the same /etc/shadow but without the password field for > the root user, who needs vi when you have tools like that? ;) >
My first thought was sed also but that thought was pressed up against the wall by another thought about how the guy didn't know vi and then yet another thought ganged up on the sed thought which felt that he was probably a little new and maybe the sed thought should know when to run for cover. So the dumb thug thoughts won that battle and we ended up with my really trivial three lines above. Really .. I think that way. It may not be a good thing. dc _______________________________________________ opensolaris-discuss mailing list [email protected]
