Help for this page

Select Code to Download


  1. or download this
    perl -ne 'print if $. >= 17 && $. <= 30' infile.txt > output.txt
    
  2. or download this
    perl -ne 'print if 17 .. 30' infile.txt > output.txt
    
  3. or download this
    open INFILE,  '<', $inFile  or die "Can't open $inFile : $!";
    open OUTFILE, '>', $outFile or die "Can't open $outFile : $!"; 
    ...
    close INFILE or die "can't close $inFile : $!"; 
    close OUTFILE or die "can't close $outFile : $!";