These files stay deprecated and out of the sourcing path for now, but
apply the same ${var} notation cleanup as the rest of the repo where
it's a pure notation fix. basedir.bash is left untouched: its bug is
a broken escape, not a notation issue, and it mirrors the one already
removed from _helpers.bash.
17 lines
218 B
Bash
17 lines
218 B
Bash
#!/bin/bash
|
|
|
|
function ldifparse ()
|
|
{
|
|
awk 'length > 79 {
|
|
n=1
|
|
while ( length($0) > 78 + n ) {
|
|
printf "%s\n ", substr($0,1,78 + n)
|
|
$0 = substr($0,79 + n)
|
|
n=0
|
|
}
|
|
if (length) print
|
|
next
|
|
}
|
|
{print}' "${FILE}"
|
|
}
|