#!/bin/bash printf '%s %s %s\n' \ 'oratorienchor' 'Erich' '' \ 'thueringer-saengerknaben' 'Familie' 'K: ' \ | while read -r Chor Kalender Extra; do curl -Ss 'https://kirchenmusik-saalfeld.de/termine-dienste/'"${Chor}"'/' \ | grep '^\[{"@context":"http://schema.org"' \ | jq -cr '.[].url' \ | while read -r url; do curl -Ss "${url%/}/?ical=1" \ | sed ' s@^SUMMARY:@\0'"${Extra}"'@ ' \ | khal import -a "${Kalender}" --batch done done