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

Re: ldapsearch wrapping at 76 chars

On Thu, 11 Aug 2005, Pierangelo Masarati wrote:

> > 2. Or is there another recognized methods to retrieve the raw attribute
> > string from the shell ?
> Many people posted many different scripts in many different languages
> (including, I believe, shell by way of awk) that do it.  I cannot find
> them right now, and it's hard to say if it would take longer to search the
> archives or to write one from scratch.

They don't get much smaller than this:

	perl -p -00 -e 's/\r\n //g; s/\n //g'

Dave Horsfall  DTM  VK2KFU  daveh@ci.com.au  Ph: +61 2 8425-5508 (d) -5500 (sw)
Corinthian Engineering, Level 1, 401 Pacific Hwy, Artarmon, NSW 2064, Australia