#!/bin/sh -e sel=`find . -not -type d | fzf` [ -n "$sel" ] if [ -p $sel ]; then fmt < $sel ; else cat $sel ; fi read foo