~/bin/longest-filename

By Hal Canary, 2008-06-07 18:10:57 (link)
#computers-code

#!/bin/sh
#DTPD#
# ~/bin/longest-filename
# How long is the longest filename
# in these directories?
{ for x in "$@" ; do
find "$x" -exec basename {} \;
done } | wc -L

(back)