# these are CORRECT but have many downsides:
( find . -type f -exec cat {} \; ) > ../collection
# OR
( find . -type f -exec cat {} +  ) > ../collection

# Simple approach, find ... xargs, POSIX 2024 compliant:
( find . -type f -print0 | xargs -0 cat ) > ../collection

# using find and a shell loop, for more complex situations,
# this is supported by POSIX 2024:
find . -print0 |
while IFS="" read -r -d "" file ; do ...
 # use "$file" not $file everywhere.
done
