#! /bin/sh echo ex4 path //count files under path// touch /tmp/t$$ find $1 -type f -exec /usr/bin/echo "1\c" >> /tmp/t$$ \; wc -c < /tmp/t$$ rm /tmp/t$$