make newline between urls

This commit is contained in:
David Holdeman 2022-01-24 17:16:48 -06:00
parent d2e42e395b
commit 49d96f273b
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ searchfile() {
REPLACE=$(escape "$link") REPLACE=$(escape "$link")
REPLACEWITH=$(escapeReplace '['"$TITLE"']''('"$link"')') REPLACEWITH=$(escapeReplace '['"$TITLE"']''('"$link"')')
sed -i "s/$REPLACE/$REPLACEWITH/" "$1" sed -i "s/$REPLACE/$REPLACEWITH/" "$1"
echo
done 3< <(grep -oP '((?<![\(\[])http[s]?:\/\/[^\s]*)' "$1") done 3< <(grep -oP '((?<![\(\[])http[s]?:\/\/[^\s]*)' "$1")
} }
export -f searchfile export -f searchfile