From 8ab655abdd31940d3fba1bc7d48411d6013844ee Mon Sep 17 00:00:00 2001 From: David Holdeman Date: Mon, 24 Jan 2022 17:04:18 -0600 Subject: [PATCH] add option to skip --- wiki-tools/linkifyurls.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wiki-tools/linkifyurls.sh b/wiki-tools/linkifyurls.sh index 603e48ec..07117c71 100644 --- a/wiki-tools/linkifyurls.sh +++ b/wiki-tools/linkifyurls.sh @@ -19,7 +19,10 @@ searchfile() { echo "$LINE" fi echo $link - read -p "Enter a title or leave empty to use URL as title: " TITLE + read -p "Enter a title or leave empty to use URL as title or enter 'n' to skip: " TITLE + if [ "$TITLE" == "n" ]; then + continue + fi if [ $(echo -n "$TITLE" | wc -c) -lt 1 ]; then TITLE="$link" fi