GNU find has a -print0 option to terminate filenames with null characters. However, this option is not available in POSIX find.
In the GNU man page for find, under the -print flag, it says:
If you are piping the output of
findinto another program and there is the faintest possibility that the files which you are searching for might contain a newline, then you should seriously consider using the-print0option instead of
This suggests to me that -print0 was introduced by GNU to specifically handle file paths with newline characters.
What alternative is available in POSIX for GNU's -print0 option, using either just POSIX find or piping to a second POSIX command?