On Aug 2, Messervy, Joe M said:

>Ok, I feel stupid the test should have been perl -p -i -e 's/\nmachine//g'
>myfile   ... but it still doesnt work :(

Well, $_ is only ONE LINE of the file.  So it can't possibly start with a
newline and then have other text.  Perhaps you want

  s/^machine//;

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to