2026-05-03 03:15:01 +02:00

9 lines
227 B
Bash
Executable File

#/bash/bin/env bash
regex='[a-zA-Z][a-zA-Z0-9+.-]*:(//[^[:space:]/?#]+)?[^[:space:]<>"]*'
contente=$(wl-paste)
echo "$contente" | grep -oE $regex | while read -r uri; do
echo "Opening URI: $uri"
xdg-open "$uri" &
done