Tuesday, September 09, 2008

reverse lines of file

use rev filename. For example,

[xianjund@douglasgran hypotest]$ head test11.data 
ENSG00000007372 ENSG00000109911 ENSG00000121690
ENSG00000007372 ENSG00000149100 ENSG00000170959
ENSG00000043355 ENSG00000175198 ENSG00000102452
ENSG00000172845 ENSG00000115840 ENSG00000091428

[xianjund@douglasgran hypotest]$ rev test11.data
09612100000GSNE 11990100000GSNE 27370000000GSNE
95907100000GSNE 00194100000GSNE 27370000000GSNE
25420100000GSNE 89157100000GSNE 55334000000GSNE
82419000000GSNE 04851100000GSNE 54827100000GSNE

It's cool, hmm?

No comments:

Post a Comment