1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-20 13:11:44 +00:00

Sed was a little borked

This commit is contained in:
David Young
2020-06-03 13:58:27 +12:00
parent f75a335357
commit 6f9098d055

View File

@@ -5,10 +5,10 @@ do
echo "Processing $file..." echo "Processing $file..."
# Markua doesn't know what to do with 4 backticks (````), so convert to 3: # Markua doesn't know what to do with 4 backticks (````), so convert to 3:
sed -ie "s/\`\`\`\`/\`\`\`/g" $file sed -i "s/\`\`\`\`/\`\`\`/g" $file
# Can't use relative paths in a book, so make all paths static # Can't use relative paths in a book, so make all paths static
sed -ie 's/(\//(https:\/\/geek-cookbook.funkypenguin.co.nz\/)/g' $file sed -i 's/(\//(https:\/\/geek-cookbook.funkypenguin.co.nz\/)/g' $file
# strip emojis # strip emojis
tr -cd '\11\12\15\40-\176' < $file > $file-clean tr -cd '\11\12\15\40-\176' < $file > $file-clean