in reply to Count the number of lines in a file
$ wc -l existing_file > another_file [download]
#!/usr/bin/perl -w my $file = shift; my @cmd = ( "wc", "-l", $file ); system( @cmd ); [download]