[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: scripting



>I know that this may not be a OpenLDAP question but it is in relation to it.
>Trying to replicate between netscape and openLDAP and the solution is a
>small script to do this.
>The trouble is I need to insert a character as follows into the change log
>of netscape, so when netscape produces the file my script can read it modify
>it and populate openldap without any errors:
>dn: cn=#3COMSI,  ( to become the following )
>dn: cn=\#3COMSI
>Does anyone have any ideas.

sed "s/cn=#/cn=\\#/s" < inputfile > outputfile