That's not going to work if you have filenames with spaces
in them. Piping it through
xargs -0 (and don't
forget the
-print0 option for
find)
works better, although you will still have problems with
filenames ending or beginning with a pipe symbol, beginning
with a greater than or less than symbol, files named
-,
or files beginning or ending with whitespace. All due to the
magic open (All hail magic open!).
We can however do the substitution without a body:
find . -type f -print0 | xargs -0 perl -0777lpwi.bak -015e' '
Abigail