aboutsummaryrefslogtreecommitdiffstats
path: root/urigetline
diff options
context:
space:
mode:
Diffstat (limited to 'urigetline')
-rwxr-xr-xurigetline29
1 files changed, 0 insertions, 29 deletions
diff --git a/urigetline b/urigetline
deleted file mode 100755
index 3f6bb51..0000000
--- a/urigetline
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-uri="$1"
-### old way.
-# line="$(grep "^${scheme}:" ~/.config/uristart.conf | cut -d: -f2- | sed 's/^[ \t]*//g' | sed 's/\\/\\\\/g')"
-
-if [ ! "$uristart_config" ];then
- uristart_config=~/.config/uristart.conf
-fi
-
-### fancy way.
-grep '^[^#]' "$uristart_config" \
- | while read -r l;do
- uritmp="$uri"
- uritmp="$(printf "%s\n" "$l" \
- | cut -d: -f1 \
- | tr ' ' '\n' \
- | paste '-d ' - - \
- | while read -r a b;do
- uritmp="$(printf "%s\n" "${uritmp}" | urimatch "$a" "$b")"
- printf "%s\n" "$uritmp"
- done | tail -n1)"
- if [ "$uritmp" ];then
- printf '%s\n' "$l"
- break
- fi
- done \
- | cut -d: -f2- \
- | sed 's/^[ \t]*//g' \
- | sed 's/\\/\\\\/g'