Keep It Simple, Stupid | |
PerlMonks |
sorting headers in a fileby utpalmtbi (Acolyte) |
on Dec 13, 2013 at 06:42 UTC ( [id://1066988]=perlquestion: print w/replies, xml ) | Need Help?? |
utpalmtbi has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have a input file with many headers and sequences, such as: >or3agagatgatagat >or10 aacctttagtag >or1 gtatatatata >or2 tactacatgagg
...... I want to sort the headers according to the number after "or".. in case of above input, the output file becomes: >or1gtatatatata >or2 tactacatgagg >or3 agagatgatagat >or10 aacctttagtag ...... Plz suggest.. Thanks
Back to
Seekers of Perl Wisdom
|
|