Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

little golf

by ccn (Vicar)
on Jul 24, 2004 at 10:34 UTC ( #377114=note: print w/replies, xml ) Need Help??


in reply to Re: how to merge the files of DNA sequences?
in thread how to merge the files of DNA sequences?

perl -lne '/^>(.*)/ or$H{$1}.=$_;END{print for map{">$_\n$H{$_}"}keys%H}' file1.txt file2.txt

Replies are listed 'Best First'.
Re: little golf
by wfsp (Abbot) on Jul 24, 2004 at 11:18 UTC
    Ok, ok I'm impressed! I'm still at the 'baby idiom' stage.

    ...and anyway, I like typing!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://377114]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2018-07-17 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (378 votes). Check out past polls.

    Notices?