Create a tempfile before the Table
sed '1,/^- \*\*Kurs Dauer:\*\*.*$/!d' README2.md >README_part1.md
echo "" >>README_part1.md
Create a tempfile after the table. Do also remove the table itself
sed '/^|.*|/d' README2.md|sed '0,/^- \*\*Kurs Dauer:\*\*.*$/d' >README_part3.md
Create the list of bastion hosts
list_bastions_hosts.sh >README_part2.md
Cat all together
cat README_part?.md README2.md