As filenames may contain spaces and new lines \n
, I am using null character as field separator. But I do not know how to say to find
that the input directories are null character separated.
My failed attempt:
foo()
{
IFS='\0'
find "$@"
}
$ mkdir 'oneword' 'two words'
$ IFS='\0' foo $(realpath -z 'oneword' 'two words')
How to tell find
that the input directories are separated by zeros?