From ca32e6602e5ee630da3bbfcbc2f4b0dfe13c1651 Mon Sep 17 00:00:00 2001 From: Andreas Domanowski <andreas@domanowski.net> Date: Wed, 1 Mar 2023 14:48:04 +0100 Subject: [PATCH] Add shell script for opening browser tabs --- history_scripts/open_migrated_files.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 history_scripts/open_migrated_files.sh diff --git a/history_scripts/open_migrated_files.sh b/history_scripts/open_migrated_files.sh new file mode 100755 index 0000000..48678e5 --- /dev/null +++ b/history_scripts/open_migrated_files.sh @@ -0,0 +1,11 @@ +#!/bin/bash +script_directory=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +url_file=$script_directory/../hedgedoc_documents_to_visit.url +echo "Please specify which browser should be used to access the newly created documents" +echo "This browser needs to have an active and logged-in HedgeDoc session." +echo "ATTENTION: your input will be evaluated as part of a shell script" +echo "ATTENTION: your input string needs to be present on your path (e.g. firefox or google-chrome)" +echo "Specify the browser:" +read browser +readarray -t url_array < $url_file +echo "${url_array[@]}" | xargs -n50 $browser \ No newline at end of file -- GitLab