awk or perl file editing & manipulation

Posted by paul44 on Stack Overflow See other posts from Stack Overflow or by paul44
Published on 2010-04-09T11:03:04Z Indexed on 2010/04/09 11:23 UTC
Read the original article Hit count: 318

Filed under:
|

I have a standard passwd file & a usermap file - which maps unix name (eg jbloggs) with AD account name (eg bloggsjoe) in the format:
jbloggs bloggsjoe
jsmith smithjohn
... etc.
How can I edit the passwd file to swap the original unix name with the AD account name so each line of the passwd file has the AD account name instead.
Appreciate any help for a perl learner.

© Stack Overflow or respective owner

Related posts about perl

Related posts about awk