Skip to content

Instantly share code, notes, and snippets.

@oehrlis
Last active June 23, 2020 09:45
Show Gist options
  • Save oehrlis/c029f54ef9e39df1c6082da6b5c6591e to your computer and use it in GitHub Desktop.
Save oehrlis/c029f54ef9e39df1c6082da6b5c6591e to your computer and use it in GitHub Desktop.
Update Table README.md

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment