9 lines
227 B
Bash
Executable File
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 |