From 73831bb424d2d592299054ccbe8cdf93656bec73 Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Wed, 21 Jul 2021 17:24:28 +0200 Subject: [PATCH] Replace echo and awk with a parameter expansion --- .local/bin/queueandnotify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/queueandnotify b/.local/bin/queueandnotify index a54b13e9..54b2c2a9 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"