From 2fd0c5479a9badf2724f2580cb4c7f527fd04d2c Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 28 Sep 2021 19:38:29 +0200 Subject: [PATCH] Add script to remove './' in markdown links --- .bin/remove-markdown-relative-link-prefix | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .bin/remove-markdown-relative-link-prefix diff --git a/.bin/remove-markdown-relative-link-prefix b/.bin/remove-markdown-relative-link-prefix new file mode 100755 index 0000000..4f443ce --- /dev/null +++ b/.bin/remove-markdown-relative-link-prefix @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +sed -i -r 's/\[*\]\(\.\/([A-z-]*.md)/\]\(\1/g' *.md