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

Re: ldapsearch - missing option



On Friday 21 April 2006 16:04, jean-marc.bottin@bnpparibas.com wrote:
> Hi all,
>
> I previously used the ldap server and utilities of Sun. The command
> ldapsearch has a nice option: "-T".
>  -T:   don't fold (wrap) long lines (default is to fold)
>
> When you do a ldapsearch and redirect the ouput to a file, you have a file
> without any wrap lines, quit cool.
> I was wondering how to you proceed with the ldapsearch of OpenLDAP.
> Do you have any special command that I have missed or do you do some
> process (hawk, sed) once you have retrieved your data.


For now, pipe the output through something like:

perl -p0e 's/\n //g'

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)

Attachment: pgpYwDPgPd96r.pgp
Description: PGP signature