#!/bin/sh # filter basic URLs, show them in dmenu and copy selection to clipboard tr -s ' ,;<>\()"│' '\n' \ | grep -a -i -E \ '(git|https?|s?ftp|rsync|ssh)://' \ | sort -f -u \ | dmenu -f -i -l 20 \ | tr -d '\n' \ | xsel -i