in reply to Re: save output of program in another file
in thread save output of program in another file
what do i do in the command line? did i do it right?open(IN,"100.fastq"); open(OUT,">100-out.fastq"); while($raw=<IN>) { print $raw; $raw=~s/\n|\r//g; @inf=split(//,$raw); for($i=0;$i<scalar(@inf)-15;$i++) { print $inf[$i]; } print "\n"; <>; } close (OUT); close(IN);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: save output of program in another file
by blue_cowdawg (Monsignor) on Jun 06, 2013 at 19:58 UTC | |
by bingalee (Acolyte) on Jun 06, 2013 at 20:55 UTC | |
by choroba (Cardinal) on Jun 07, 2013 at 07:14 UTC | |
by blue_cowdawg (Monsignor) on Jun 07, 2013 at 13:18 UTC |