Merge data from two text files
Posted on 2011-10-19
I have two text files. First one will have a username with the format of the SAMid (UserOne). There will only be one entry in this file. The 2nd file has particular groups the user belongs too with the CN name "(cn=groupname.ou=groups,dc=domain,dc=ext)". There may be two or more entries in this file. I want to merge these entries into one text file that would prefereably look like
In this case the delimiter needs to be something other than a comma, such as simicolon. The entries can be reversed, I don't really care. I'd prefer a DOS command (FOR), since that would fit in with the rest of the script. We either create a new file with the merged data or append one of the existing files with the data from the other.