in reply to Concatenation connected to find pipe behaves wierdly.

Another way to try would be:
find . -print0 | perl -0pe "s/\0/foo\n/"
Check perlrun for the "-0" option -- it's meant to take advantage of the "-print0" option on find, to avoid the possibility of getting screwed because a file name happens to include newline characters.

Replies are listed 'Best First'.
Re^2: Concatenation connected to find pipe behaves wierdly.
by sfink (Deacon) on Feb 01, 2006 at 06:29 UTC
    Or you could spell that
    find . -print0 | perl -l -0 -ne 'print $_ . "foo"'
    (Quotes this time are for a Unix shell.)

    It's a little wacky due to the order sensitivity of the command line arguments: perl -0 -l -ne ... would not work. But as graff said, see perlrun for the details.