follow up on How to find files that contain newline in filename? ,
I need to do some manipulation on the result, for simplicity lets suppose I need to chown them.
Tried following, but does not work:
# this is what I usually use, not work
find . -name '*'$'\n''*' -type d | while read a; do chown www.www "$a"; done
this is more standard way, still not work
find . -name ''$'\n''' -type d | xargs chown www.www '{}'