Thanks,
That worked without errors but no output was created. Let me explain what I'm trying to do again:
- I need to search the file for some key words such as "mail" "middleinitial" "sn"
- assign the word after the keyword to a variable.
- If the keyword is "dn" send all the values currently assigned to a file.
- Then begin next search.
Below is a sample of the input file:
+++++++++DATA BEGINS++++++++++++++++
mail: Administration_Requests%DoCDir@mit.edu
givenname: Administration Requests
middleinitial: dominoServerMailInDatabase
sn: top
dn: CN=Administrators
cn: Administrators
mail:
Administrators@mit.edu
objectclass: dominoGroup
objectclass: groupOfNames
objectclass: top