#!/bin/sh # Download and display X-Image images : ${VIEWER:=fbi} # Create temporary directory for images dir=/tmp/$RANDOM mkdir $dir sed -n 's/^X-Image: //p' | while read url do curl "$url" > $dir/$RANDOM done # Display images and delete them afterwards eval $VIEWER $dir/* < /dev/tty rm -r $dir