Help for this page

Select Code to Download


  1. or download this
    $ wc -l existing_file > another_file
    
  2. or download this
    #!/usr/bin/perl -w
    
    my $file = shift;
    my @cmd = ( "wc",  "-l",  $file );
    system( @cmd );