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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

help with script for add line

Reply to Message Icon

Name: mgonzalo
Date: February 22, 2008 at 03:26:03 Pacific
OS: HP-UX
CPU/Ram: HP
Product: 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



Sponsored Link
Ads by Google

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

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


0
Reply to Message Icon

Related Posts

See More


URGENT-check data within ... Find duplicate value and ...



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


Sponsored links

Ads by Google


Results for: help with script for add line

Script for replacing multiple lines www.computing.net/answers/unix/script-for-replacing-multiple-lines/4145.html

Help with Bourne Shellscript (More) www.computing.net/answers/unix/help-with-bourne-shellscript-more/5005.html

HELP!!!! with Write a script. www.computing.net/answers/unix/help-with-write-a-script/4918.html