in reply to Perl Parser, need help
Either just redirect the output to a file (or pipe it elsewhere), or you could use the -i argument (man perlrun) as well.# DOS quoting: perl -ne "$contig=$1 if /^Sequence:\s+(\S+)/; print \"$contig $_\" if +$_!~/^(\S+:)/ && /\S/" dat.txt # *nix quoting: perl -ne '$contig=$1 if /^Sequence:\s+(\S+)/; print "$contig $_" if $_ +!~/^(\S+:)/ && /\S/' dat.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Parser, need help
by QM (Parson) on May 15, 2005 at 03:23 UTC | |
by davidrw (Prior) on May 15, 2005 at 15:56 UTC |