Computing.Net > Forums > Unix > help with script for add line

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

help with script for add line

Reply to Message Icon

Original Message
Name: mgonzalo
Date: February 22, 2008 at 03:26:03 Pacific
Subject: help with script for add line
OS: HP-UX
CPU/Ram: HP
Manufacturer/Model: B.10.20 A 9000/785
Comment:

Hello, I have a file that should be formed by groups of 2 lines

dn: CN=COMPGE,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: COMPROBACIONES G.E.
dn: CN=DOC,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName:: RG9jdW1lbnRhY2nDs24=
dn: CN=FDGexterno,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: FDGexterno
dn: CN=IUSR,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: Usuario dek IIS40 del serverw
dn: CN=PLANIFICA,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: ARRANCAR EL SCHEDULER
dn: CN=PROJECAL,OU=externo,OU=users_genericos,DC=empresa,DC=es
dn: CN=PRUEBAM,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: PRUEBA DE ACCESO AL SISTEMA
dn: CN=CUR_EAA2,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: desarrollo2

but sometimes alone one appears one line

dn: CN=PROJECTCENTRAL,OU=externo,OU=users_genericos,DC=empresa,DC=es

as I can make that if there is one it lines me adds the other line

that is to say, if it is in the way

dn: CN=COMPGE,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: COMPROBACIONES G.E.
dn: CN=DOC,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName:: RG9jdW1lbnRhY2nDs24=
dn: CN=FDGexterno,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: FDGexterno
dn: CN=IUSR,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: Usuario dek IIS40 del serverw
dn: CN=PLANIFICA,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: ARRANCAR EL SCHEDULER
dn: CN=PROJECAL,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName:
dn: CN=PRUEBAM,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: PRUEBA DE ACCESO AL SISTEMA
dn: CN=CUR_EAA2,OU=externo,OU=users_genericos,DC=empresa,DC=es
displayName: desarrollo2

that he adds the it lines and be in the way

displayName:

Thanks
"La experiencia es algo maravilloso. Nos permite reconocer un error cada vez que lo volvemos a cometer.", Franklin P. Jones


Report Offensive Message For Removal


Response Number 1
Name: mgonzalo
Date: February 22, 2008 at 03:29:09 Pacific
Reply: (edit)

where it puts PROJECTCENTRAL it should put PROJECAL

"La experiencia es algo maravilloso. Nos permite reconocer un error cada vez que lo volvemos a cometer.", Franklin P. Jones


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software