in reply to Re^2: Getting unique line counts between lines starting with '>'
in thread Getting unique line counts between lines starting with '>'
output$ perl -lne 'sub prt{@c && print scalar @c,"\n",join ", ",@c;@c=();pri +nt} />/?prt:push @c,$_}{prt' TheFileName
For info on "}{", see "Eskimo greeting" in perlsecret.>05143_African_trypanosomiasis 4 TRINITY_DN26760_c1_g1, 18169, 42987, 42987 >05145_Toxoplasmosis 7 43736, 38319, 38320, 38320, TRINITY_DN24151_c3_g1, TRINITY_DN25493_c0_ +g1
All power corrupts, but we need electricity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Getting unique line counts between lines starting with '>'
by Anonymous Monk on Oct 20, 2017 at 04:45 UTC |