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

Re: How can I get rid of linewraps in output of ldapsearch?

On Fri, 5 Sep 2003, Ulrich Drolshagen wrote:

> does anybody know some regular way to get rid of the linewraps in the output
> of ldapsearch? Google gave a hint on a patch for ldapsearch.c and some
> library but thats not what I am looking for cause I can't foresee the
> sideeffects this might have.

If you have Perl, pipe the output through this:

perl -p -00 -e "s/\n //g"

Dave Horsfall  DTM  VK2KFU  daveh@ci.com.au  Ph: +61 2 9906-7866  Fx: 9906-1556
Corinthian Engineering, Level 1, 401 Pacific Hwy, Artarmon, NSW 2064, Australia