Bash: Loop through directories and sub-directoires

#!/bin/bash
export IFS=$'\n'

for i in $(find $1 -type f)
do
    echo "$i"
done