Currently, I am trying to parse out all the files inside a directory. I have a find function, but it appears to not be able to parse in file directories with whitespaces into a loop. Here, "$DIR"
is the directory I wish to search in. Does anyone have any ideas how I can modify it to work? thanks.
for file in $(find "$DIR" -type f)
do
echo "$file"
done