From afc9fd38a7f43ac85ce31ad76f660346d90125da Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 29 Apr 2020 05:33:52 -0500 Subject: urigetline now ignores blank and commented out lines --- urigetline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" \ -- cgit v1.2.3