From 850f917b6aaea6f25bab8860ede290eb66fe958b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 22 Nov 2020 01:30:55 +0100 Subject: blq: Add -r option The -r option processes the search results with blm and opens the mbox file in a given mail reader. --- xii | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xii') diff --git a/xii b/xii index dc4a620..c79e967 100755 --- a/xii +++ b/xii @@ -8,13 +8,12 @@ dir=/tmp/$RANDOM mkdir $dir -grep '^X-Image: ' | -sed 's/^X-Image: //' | +sed -n 's/^X-Image: //p' | while read url do curl "$url" > $dir/$RANDOM done # Display images and delete them afterwards -$VIEWER $dir/* < /dev/tty +eval $VIEWER $dir/* < /dev/tty rm -r $dir -- cgit v1.2.3