私は非常に大きなLDAPディレクトリでフルテキスト検索を実行するためにslapcatを使用しています。どこを見るべきかわからないとき、私が探しているものを一致させる方が簡単だからです。
問題は、パッケージが長すぎるということです
slapcat -v | grep -A 1 "some search string"
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321
wraps like this
ベストアンサー1
少し遅れているかもしれませんがman slapcat
、
OPTIONS
-o option[=value]
Specify an option with a(n optional) value. Possible generic options/values are:
syslog=<subsystems> (see `-s' in slapd(8))
syslog-level=<level> (see `-S' in slapd(8))
syslog-user=<user> (see `-l' in slapd(8))
ldif-wrap={no|<n>}
n is the number of columns allowed for the LDIF output
(n equal to 0 uses the default, corresponding to 78).
The minimum is 2, leaving space for one character and one
continuation character.
Use no for no wrap.
slapcat -o ldif-wrap=no ...
あなたが望むものも同じです。