Skip to content

Instantly share code, notes, and snippets.

@ironicbadger
Created February 12, 2019 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironicbadger/608b91e35cb755f1fe4afc7a2b78ebb4 to your computer and use it in GitHub Desktop.
Save ironicbadger/608b91e35cb755f1fe4afc7a2b78ebb4 to your computer and use it in GitHub Desktop.
linuxserver readme changelog script
#!/bin/bash
# call as replace.sh filename
file="$1"
sed -i 's/+ \*\*/ - { date: "/g' $file
sed -i 's/:\*\* /:", desc: "/g' $file
sed -i '/ - { date:/ s/$/" }/' $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment