#!/bin/sh cd /tmp mkdir mytestdir cd mytestdir touch file1 touch "file 2" touch "file 1 2 3 4 5" find /tmp/mytestdir -type f -print0 | \ while read -d '' FILE; do echo "$FILE" done