in reply to Re: System command not working
in thread System command not working
Thanks for the reply I am doing it in this way :
#/usr/bin/perl -w use strict ; my $outFile= "output.txt"; my $inFile= "infile.txt"; my $start=17; my $end=30; my $perlcmd="perl -ne 'print if \$. >= $start && \$. <= $end' $inFile +>>$outFile"; system($perlcmd);
This is working what I expect but plz tell is this the best way or their is a fast and better way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: System command not working
by kcott (Archbishop) on Jul 10, 2012 at 07:51 UTC | |
|
Re^3: System command not working
by aitap (Curate) on Jul 10, 2012 at 07:19 UTC | |
|
Re^3: System command not working
by monsoon (Pilgrim) on Jul 10, 2012 at 15:04 UTC | |
|
Re^3: System command not working
by Jim (Curate) on Jul 10, 2012 at 22:00 UTC |