Hi,
I have a file with many input lines and i want to exclude
the lines which look like from my output file "output_file"..
-----------------|------------------[ added ]----------
my code which i thought could solve looks like this
open(INP, "input_file"
;
open(ONP , ">> output_file"
;
while(<NP>){
$lin = $_;
$lin =~ s/^-+\|-+\[ added \]-+//g;
print ONP " $lin";
}
close INP;
close ONP;
Thanks
Rao
I have a file with many input lines and i want to exclude
the lines which look like from my output file "output_file"..
-----------------|------------------[ added ]----------
my code which i thought could solve looks like this
open(INP, "input_file"
open(ONP , ">> output_file"
while(<NP>){
$lin = $_;
$lin =~ s/^-+\|-+\[ added \]-+//g;
print ONP " $lin";
}
close INP;
close ONP;
Thanks
Rao