fix slapcat 79 character line wrap in output

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I use slapcat to do a full-text search in our very large ldap directory.
As it is easier to match what I am looking for when I don't know where to look.
The problem is that it wraps long lines
slapcat -v | grep -A 1 "some search string"
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321
wraps like this
text-processing sed ldap slapcat line
add a comment |Â
up vote
0
down vote
favorite
I use slapcat to do a full-text search in our very large ldap directory.
As it is easier to match what I am looking for when I don't know where to look.
The problem is that it wraps long lines
slapcat -v | grep -A 1 "some search string"
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321
wraps like this
text-processing sed ldap slapcat line
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I use slapcat to do a full-text search in our very large ldap directory.
As it is easier to match what I am looking for when I don't know where to look.
The problem is that it wraps long lines
slapcat -v | grep -A 1 "some search string"
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321
wraps like this
text-processing sed ldap slapcat line
I use slapcat to do a full-text search in our very large ldap directory.
As it is easier to match what I am looking for when I don't know where to look.
The problem is that it wraps long lines
slapcat -v | grep -A 1 "some search string"
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321
wraps like this
text-processing sed ldap slapcat line
asked Feb 27 at 12:02
nelaaro
5402614
5402614
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760
This matches line ending n followed by a and joins the lines.
slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760
This matches line ending n followed by a and joins the lines.
slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this
add a comment |Â
up vote
0
down vote
I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760
This matches line ending n followed by a and joins the lines.
slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760
This matches line ending n followed by a and joins the lines.
slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this
I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760
This matches line ending n followed by a and joins the lines.
slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this
answered Feb 27 at 12:02
nelaaro
5402614
5402614
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426919%2ffix-slapcat-79-character-line-wrap-in-output%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password