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
In reply to Re: Perl Parser, need help
by davidrw
in thread Perl Parser, need help
by joomanji
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |