#!/bin/sh
# findbroken -- list broken symlinks

if [ -t 1 ]; then
	fmt="%p \033[38;5;4m=>\033[m \033[38;5;9m%l\033[m\n"
else
	fmt="%p => %l\n"
fi

find "$@" -xtype l -printf "$fmt"
