Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
I want to edit ldif file with script in one short
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ranju  
View profile  
 More options Apr 23 2011, 12:22 am
Newsgroups: perl.ldap
From: ranjithsredd...@gmail.com (ranju)
Date: Fri, 22 Apr 2011 21:22:35 -0700 (PDT)
Local: Sat, Apr 23 2011 12:22 am
Subject: I want to edit ldif file with script in one short
here is the example for input file

dn: cn=462_9,ou=2013,ou=Month,o=Year
changetype: add
cn: 73001213
cn: 462_9

dn: cn=23_9,ou=2013,ou=Month,o=Year
changetype: add
cn: 72000097
cn: 23_9

dn: cn=487_9,ou=2013,ou=Month,o=Year
changetype: add
cn: 71000459
cn: 487_9

I need the output as same as this

dn: cn=462_9,ou=2013,ou=Month,o=Year
changetype: modrdn
newrdn: cn= 73001213
deleteoldrdn:1

dn: cn=23_9,ou=2013,ou=Month,o=Year
changetype: modrdn
newrdn: cn=72000097
deleteoldrdn:1

dn: cn=487_9,ou=2013,ou=Month,o=Year
changetype: modrdn
newrdn: cn= 71000459
deleteoldrdn:1

can some one please help me with the perl script......


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »