externalpipe 234 B

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