#!/bin/sh if [ -t 1 ]; then pattern="%p \033[38;5;4m=>\033[m \033[38;5;9m%l\033[m\n" else pattern="%p => %l\n" fi find "${@}" -xtype l -printf "${pattern}"