summaryrefslogtreecommitdiff
path: root/urigetline
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-04-29 05:33:52 -0500
committerepoch <epoch@hacking.allowed.org>2020-04-29 05:33:52 -0500
commitafc9fd38a7f43ac85ce31ad76f660346d90125da (patch)
tree921380016bea9c340e54cc736315896ff83a5fae /urigetline
parent8ec0b3da94b3bbc18140bdea22488d51676d2634 (diff)
downloaduritools-afc9fd38a7f43ac85ce31ad76f660346d90125da.tar.gz
uritools-afc9fd38a7f43ac85ce31ad76f660346d90125da.zip
urigetline now ignores blank and commented out lines
Diffstat (limited to 'urigetline')
-rwxr-xr-xurigetline2
1 files changed, 1 insertions, 1 deletions
diff --git a/urigetline b/urigetline
index 81e28c9..6d20320 100755
--- a/urigetline
+++ b/urigetline
@@ -4,7 +4,7 @@ uri="$1"
# line="$(grep "^${scheme}:" ~/.config/uristart.conf | cut -d: -f2- | sed 's/^[ \t]*//g' | sed 's/\\/\\\\/g')"
### fancy way.
-cat ~/.config/uristart.conf \
+grep '^[^#]' ~/.config/uristart.conf \
| while read -r l;do
uritmp="$uri"
uritmp="$(printf "%s\n" "$l" \