reaktor2 bing: split lines after 426 chars

This commit is contained in:
lassulus 2023-05-14 19:56:47 +02:00
parent 6db3832db5
commit df09f8293f

View File

@ -81,7 +81,8 @@ let
echo "$_from: $(report_error "$response")" echo "$_from: $(report_error "$response")"
exit 0 exit 0
fi fi
printf '%s' "$text" | echo "$_from: $(cat)" # value seems to be 512 - overhead
echo "$_from: $text" | fold -s -w 426
printf '%s' "$response" | printf '%s' "$response" |
jq -r '[.item.messages[1].sourceAttributions[].seeMoreUrl] | to_entries[] | "[\(.key + 1)]: \(.value)"' jq -r '[.item.messages[1].sourceAttributions[].seeMoreUrl] | to_entries[] | "[\(.key + 1)]: \(.value)"'