Grep
Kevin D. Clark
kclark at CetaceanNetworks.com
Thu Jan 30 11:44:43 EST 2003
"Kenneth E. Lussier" <ken.lussier at zuken.com> writes:
> I need to remove the blank lines before "givenName" and
> "telephoneNumber".
Ask and ye shall receive:
perl -0777 -pe 's/\n[ \t]*\n(givenName|telephoneNumber)/\n$1/sg;'
I can think of other ways to do this too but this is really natural.
Regards,
--kevin
--
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc
More information about the gnhlug-discuss
mailing list