This is the ldf file
dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com
objectClass: sdcsSubscriber
objectClass: top
postalCode: 29600
sdcsServiceLevel: 10
sdcsCustomerType: 14
givenName: Adelia
sdcsBlackListAll: FALSE
sdcsOwnerType: T-Mobile
sn: Actionteam
sdcsAccountStatus: active
sdcsCustomerId: 49
sdcsMsisdn: 1000000049
sdcsTimestamp: 20091120215911Z
ds-entry-unique-id:: JMYDmDjJRO2ZuZyJNy+u3Q==
ds-update-time:: AAABKCIkQn4=
ds-create-time:: AAABKCIkQn4=
creatorsName: cn=Directory Manager,cn=Root DNs,cn=config
modifiersName: cn=Directory Manager,cn=Root DNs,cn=config
dn: sdcsmsisdn=1000000051,sdcsDatabase=subscriberCache,dc=example,dc=com
objectClass: sdcsSubscriber
objectClass: top
postalCode: 61671
sdcsServiceLevel: 3
sdcsCustomerType: 76
givenName: Adelina
sdcsBlackListAll: FALSE
sdcsOwnerType: T-Mobile
$ head -50 output.ldif
dn: dc=example,dc=com
objectClass: domain
objectClass: top
dc: example
ds-sync-generation-id: 249287103
ds-entry-unique-id:: VMicRTJ7PTiKLreBTeZRpA==
ds-sync-state: 0000012F4D618697103601BA8A19
ds-sync-state: 0000012F4D61806B582F01C46148
ds-sync-state: 0000012822FE4A99580300000003
ds-sync-state: 0000012F4D6186EA2EB204A888F1
ds-sync-state: 0000012A6AAAB90745AE0008165F
ds-sync-state: 0000012A81FDF1CA371F00006AC7
ds-sync-state: 0000012823020EA5156100000002
ds-sync-state: 0000012F4D6186965AD401BAF320
aci: (targetattr!="userPassword")(version 3.0; acl "Allow anonymous read access for anyone"; allow (read,search,compare) userdn="ldap:///anyone"
aci: (targetattr="*")(version 3.0; acl "Allow users to update their own entries" ; allow (write) userdn="ldap:///self"
I'm looking for Postalcode,
sdcsServiceLevel, sdcsCustomerType, sdcsAccountStatus, sdcsCustomerID, sdcsMsisdn, sdcsFeature, sn, givenName values to be extracted and put in the text file as
29600,10,14,active,49,1000000049,,Actionteam,Adelia
---------- Post updated at 04:28 PM ---------- Previous update was at 04:28 PM ----------
the last one is text file format . Urgent please