Adding directory tree by using p4 command

cd <dir>
find . -type f -print | p4 -p <host:port> -x - add
p4 -p <host:port> submit