Thaks for the help in my last thread. I have one more question. I have two files with ldap entries in it. One file contains all the user LDAP parameter entries (26 MB) and other file contains only the user id's that have to be inactivated. Unix script has to read from the file that has user id information that has to be inactivated and update the main file with constant text. It has to update only those entries that are in the file that has the list of users to inactivate. Below is an example with input files and utput files that I need.
Thanks for the quick reply bartus11. we have that empty space after each user record. That new line divides different set of users in the file. Do we have any other option to process the file with the empty file.
Thanks for the update. I have a question regarding ignoring case sensitivity while searching from file 2. File 2 always has entries in CAPS. file 1 may contain the UID value in capitol or small letters. The current code is working only if it matches the case. Help in this is highly appriciated.