2022-06-08 06:07:41 -04:00
|
|
|
#!/bin/sh
|
|
|
|
expand |
|
|
|
|
sed -n '
|
|
|
|
/./!d
|
|
|
|
p
|
|
|
|
i\
|
|
|
|
|
|
|
|
:l
|
|
|
|
n
|
|
|
|
p
|
|
|
|
bl' |
|
|
|
|
sed -n '
|
|
|
|
:l
|
|
|
|
p
|
|
|
|
n
|
|
|
|
/./bl
|
|
|
|
:b
|
|
|
|
n
|
|
|
|
/./!bb
|
|
|
|
i\
|
|
|
|
|
|
|
|
bl' |
|
|
|
|
sed -e '1s/^/./' -e 's/^ /./' |
|
2023-09-12 11:02:57 -04:00
|
|
|
par -P=. |
|
2022-06-08 06:07:41 -04:00
|
|
|
awk '
|
2023-09-12 11:02:57 -04:00
|
|
|
BEGIN { LIMIT = 72 }
|
2022-06-08 06:07:41 -04:00
|
|
|
NR == 1 || /^[^\.]/ || length($0) < LIMIT {
|
|
|
|
sub(/^\./, NR == 1 ? "" : " ");
|
|
|
|
print;
|
|
|
|
}
|
|
|
|
/^\./ && length($0) >= LIMIT {
|
|
|
|
sub(/^\./, " ");
|
|
|
|
print substr($0, 1, LIMIT)"\\";
|
|
|
|
for (i = 2*LIMIT - length($0) + 1; i; i--)
|
|
|
|
printf " ";
|
|
|
|
print substr($0, LIMIT+1);
|
|
|
|
}'
|