perl -ne'$.>=32008 and print' Alte_Datei > Neue_Datei
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/perl use strict; use warnings; die "USAGE:\n$0 <line> <filein> <fileout>\n" if @ARGV<3; my ($cnt,$fin,$fout)=@ARGV; open(my $ifh, '<:raw',$fin) or die "Error open $fin : $!\n"; <$ifh> while $cnt-- > 0; $/=undef; open(my $ofh, '>:raw',$fout) or die "Error open $fout : $!\n"; my $buff=''; print $fho $buff while(read $fh,$buff,4096); close $fho; close $ifh;
2013-11-16T11:13:21 RelaisCode (perl): (dl )perl -ne'$.>=32008 and print' Alte_Datei > Neue_Datei
perl -ne '$.>=32008 and print; END { die "Cannot write: $!\n" unless close STDOUT; }'