Alan_C wrote:
> Hi,

Hello,

> perl -pi.bak -e 'tr/\xA0/ /' filenames*
> 
> # all files in a folder
> find . | xargs perl -p -i.bak -e 's/oldstring/newstring/g'
> 
> perl  -e 's/string/stringier/gi'  -p  -i.bak  *.html
> 
> I'm accustomed to some of those.  But how do I or is it possible to file 
> slurp 
> on the command line, substituting \n+ with \n

It is explained in the perlrun document for the -0 (zero) switch.

perldoc perlrun



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to