rm_multi_line.pl
#!/usr/bin/perl
open my $oldfile,"<",$ARGV[0];
open(OUT,">./new1");
while (<$oldfile>) {
unless( $_ =~ /a|b|c/ ) {
print OUT "$_";
}
}
rm_multi_line.pl
#!/usr/bin/perl
open my $oldfile,"<",$ARGV[0];
open(OUT,">./new1");
while (<$oldfile>) {
unless( $_ =~ /a|b|c/ ) {
print OUT "$_";
}
}
本文标题:Perl 脚本记录3
本文链接:https://www.haomeiwen.com/subject/nbvgwxtx.html
网友评论