Hi,
Thanks a lot , I have done it.
I have got the following output for all files (just showing for one file and naming it as o.txt) :
100.000 0.51332 0.0000001923 -191.04738 a.txt
2000.000 0.49573 0.0000015512 -191.40071 a.txt
1000.000 0.51047 0.0000028339 -190.92254 a.txt
Further, I need your help. I have 10 more files, all of same format (11.txt) as follows, showing 2 repeats from this file:
ATOM 1 N SER A 1 35.092 83.194 140.076 1.00 0.00 N
ATOM 2 CA SER A 1 35.216 83.725 138.725 1.00 0.00 C
ATOM 3 C SER A 1 36.530 84.485 138.538 1.00 0.00 C
TER
ENDMDL
ATOM 1 N SER A 1 35.683 81.326 139.778 1.00 0.00 N
ATOM 2 CA SER A 1 35.422 82.736 139.929 1.00 0.00 C
ATOM 3 C SER A 1 36.497 83.588 139.247 1.00 0.00 C
TER
ENDMDL
ENDMDL is coming around 10000 times in each file. If I give input of 100 at $1 from o.txt, then it should output the first repeat from 11. txt ending with ENDMDL.
ATOM 1 N SER A 1 35.092 83.194 140.076 1.00 0.00 N
ATOM 2 CA SER A 1 35.216 83.725 138.725 1.00 0.00 C
ATOM 3 C SER A 1 36.530 84.485 138.538 1.00 0.00 C
TER
ENDMDL
So, corresponding to first column of o.txt, I want to retreive the repeat at the number $1/100 from 11.txt i.e. if $1=2000, then I want to retreive the pattern where ENDMDL is at 20 place.
Please guide me.
Thanks again
---------- Post updated at 10:40 PM ---------- Previous update was at 09:52 PM ----------
Please guide me. Its urgent.
Thanks