#!/bin/bash # pfad=/mnt/meinSMBSrv/Freigabe laenge=271 for f in $(find "$pfad" -name "*"|tr ' ' '#' ); do length=` echo ${#f}` if [ $length -gt $laenge ]; then printf '%s\t%s\n' $length,"$f" fi done