0

I'm trying to loop through each files from current directory and subdirectories. But the problem is file names with blank-space are getting treated as separate files. How do I prevent that. I want to use for loop, here is my current code.

for file in $(find . -type f -print)
do
    echo "$file";
done;

0 Answers0