Files
tool__scripts/misc/open-urls-from-file.sh
2026-07-09 01:05:56 +02:00

18 lines
392 B
Bash
Executable File

#!/bin/bash
# Path to the text file containing URLs
url_file="open_urls.txt"
# Check if the file with URLs exists
if [[ ! -f "$url_file" ]]; then
echo "File with URLs not found: $url_file"
exit 1
fi
# Iterate over lines in the file and open each URL
while IFS= read -r url; do
ungoogled-chromium --new-tab "$url"
done < "$url_file"
echo "All URLs have been opened in new tabs."