From b85e56a3b373761fcbe01fb0536fd1b5c91c5336 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 4 Dec 2021 17:48:36 +0100 Subject: [PATCH] Fix title linebreak --- .wiki/scripts/anki/index-decks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.wiki/scripts/anki/index-decks b/.wiki/scripts/anki/index-decks index 496a171..ae9c511 100755 --- a/.wiki/scripts/anki/index-decks +++ b/.wiki/scripts/anki/index-decks @@ -14,5 +14,5 @@ sed -i -e 's/^/(/' links -e 's/$/)/' # Wrap links in parentheses sed -i -e 's/^/[/' titles -e 's/$/]/' # Wrap titles in square brackets sed -i -e 's/^\[#\ /* \[/' titles # Remove '#' and add list bullet -echo "# My anki decks\n" > "$HOME/.wiki/my-anki.md" # Clear file and add markdown title +echo -e "# My anki decks\n" > "$HOME/.wiki/my-anki.md" # Clear file and add markdown title paste titles links -d "" >> "$HOME/.wiki/my-anki.md" # Concatenate & append to file