Taylor Lewick wrote:
>
> Okay, I redid it so it looks like this...
>
> `grep -v "STUFF:STUFF" file1 > file2`;
Is that what the ACTUAL line looks like?
> (I am looking for the string
> STUFF:STUFF and that didn't work... but it works via command line...
>
> Any ideas?
Use perl to do it:
open my $in, '<', 'file1' or die "Cannot open file1: $!";
open my $out, '>', 'file2' or die "Cannot open file2: $!";
while ( <$in> ) {
next if /STUFF:STUFF/;
print $out;
}
close $out;
close $in;
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>