[Tutor] map one file and print it out following the sequence

lina lina.lastname at gmail.com
Thu Oct 6 17:05:08 CEST 2011


On Thu, Oct 6, 2011 at 10:48 PM, Prasad, Ramit <ramit.prasad at jpmorgan.com>wrote:

> >I attached the two files.
>
> Although I will help you, I will not do the work for you. If you are still
> having errors, please include your script, python version, and the problem
> (if you are getting an error include the full error).
>

Thanks for your help.

Actually this one was solved by a clumsy bash script long time ago,

attached the clumsy script just to prove what I said is true. and at present
I want to "push" myself on the way of using python. so I can actually learn
something.

For this one, the python programming I will come back later, just put it
aside for a short while.

#for i in 3 4 5 6 7 8 9 10
#2
#do
#  sed '
 #    /H01/ d
 #    /H02/ d
 #    /H03/ d
 #    /H04/ d'  < proAB_processed_$i.pdb > proAB_processed.pdb
#awk '{
#    if($4 == "CUR")
#        a[i++] = $0
#}
#END{
#    print a[6]
#    print a[7]
#    print a[8]
#    print a[9]
#    print a[5]
#    print a[13]
#    print a[33]
#    print a[34]
#    print a[12]
#    print a[2]
#    print a[11]
#    print a[1]
#    print a[10]
#    print a[14]
#    print a[15]
#    print a[16]
#    print a[17]
#    print a[18]
#    print a[19]
#    print a[20]
#    print a[21]
#    print a[22]
#    print a[23]
#    print a[24]
#    print a[4]
#    print a[28]
#    print a[0]
#    print a[27]
#    print a[3]
#    print a[26]
#    print a[31]
#    print a[32]
#    print a[25]
#    print a[29]
#    print a[30]
#}' proAB_processed.pdb > try.pdb



>
> Ramit
>
>
> Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
> 712 Main Street | Houston, TX 77002
> work phone: 713 - 216 - 5423
>
>
> This email is confidential and subject to important disclaimers and
> conditions including on offers for the purchase or sale of
> securities, accuracy and completeness of information, viruses,
> confidentiality, legal privilege, and legal entity disclaimers,
> available at http://www.jpmorgan.com/pages/disclosures/email.
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
Best Regards,

lina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111006/91af5d6e/attachment.html>


More information about the Tutor mailing list