#! /bin/sh while read line; do echo $line | tr ' ' '\n' | nsxiv -io done