Why does xargs output results with new line characters?

When executing the command find . -maxdepth 1 -regextype posix-egrep -regex ‘.*/[a-zA-Z]+\.txt, it returns the following results. ./testfile.txt ./testread.txt In contrast the the command find . -maxdepth 1 -regextype posix-egrep -regex ‘.*/[a-zA-Z]+\.txt’ -print0 outputs ./testfile.txt./testread.txt as a single line which to my understanding the flag -print0 strips/replaces \n with NUL or \0 as uses these…

Details