From 1df8bcd8feffde0361726c5b70d5deb0bc183f60 Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Wed, 21 Jul 2021 18:09:53 +0200 Subject: Minor performance improvements (#975) * Skip head and grep and do it all in sed * Replace echo and awk with a parameter expansion --- .local/bin/queueandnotify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/queueandnotify') diff --git a/.local/bin/queueandnotify b/.local/bin/queueandnotify index a54b13e..54b2c2a 100755 --- a/.local/bin/queueandnotify +++ b/.local/bin/queueandnotify @@ -7,7 +7,7 @@ queuefile="${XDG_DATA_HOME:-$HOME/.local/share}/newsboat/queue" while read -r line; do [ -z "$line" ] && continue - url="$(echo "$line" | awk '{print $1}')" + url="${line%%[ ]*}" qndl "$url" "curl -LO" done < "$queuefile" -- cgit v1.3.1