R
Ron Mr.
I need to write a script that pulls usernames our of a file that is
formatted like the following.
"ADLER, CHARLES DAVID" 00-9388 x0753 Engineering
"ANSELL, ROBERT D" 14-2675 x1624 Sales
"BIANCHI, CHRISTOPHER" 12-2275 x3280 Marketing
"CAPOZZI, MICHAEL B" 08-3191 x8035 Manufacturing
The last column is what group the user is in.
The username needs to be the initials plus the first three letters of
the group for example...
cdaeng
The GECOS field would be "Charles David Adler 00-9388 x0753 Engineering"
I also need to have it use a default password or "p@ssw0rd!"
Any tips or source code examples would be great, thanks!
formatted like the following.
"ADLER, CHARLES DAVID" 00-9388 x0753 Engineering
"ANSELL, ROBERT D" 14-2675 x1624 Sales
"BIANCHI, CHRISTOPHER" 12-2275 x3280 Marketing
"CAPOZZI, MICHAEL B" 08-3191 x8035 Manufacturing
The last column is what group the user is in.
The username needs to be the initials plus the first three letters of
the group for example...
cdaeng
The GECOS field would be "Charles David Adler 00-9388 x0753 Engineering"
I also need to have it use a default password or "p@ssw0rd!"
Any tips or source code examples would be great, thanks!