in reply to Concatenation connected to find pipe behaves wierdly.
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.find . -print0 | perl -0pe "s/\0/foo\n/"
|
|---|
| 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 |