Hello!!
I have to design a program which can read the following file:
k1082
SciTegic08250908273D
30 32 0 0 0 0 999 V2000
0.3230 -0.6380 -0.7700 C 0 0
1.1810 -1.2460 -1.7340 C 0 0
2.5950 -1.1640 -1.6010 C 0 0
3.1670 -0.4730 -0.5020 C 0 0
2.2620 0.0980 0.4020 C 0 0
0.8930 0.0350 0.2990 N 0 0
4.8610 -0.3640 -0.3230 S 0 0
1 2 2 0
2 3 1 0
3 4 2 0
4 5 1 0
5 6 2 0
6 1 1 0
4 7 1 0
7 8 1 0
8 9 2 0
9 5 1 0
8 10 1 0
M END
> <Name>
k1082
> <AbsoluteEnergy>
127.9
> <ConfNumber>
1
$$$$
k1083
SciTegic08250908273D
39 42 0 0 0 0 999 V2000
-1.3610 -1.4670 -0.0270 C 0 0
-1.4000 -2.8910 -0.0080 C 0 0
-0.1970 -3.6480 0.0080 C 0 0
1.0590 -2.9880 0.0060 C 0 0
1.0270 -1.5900 -0.0130 C 0 0
-0.1270 -0.8360 -0.0290 N 0 0
2.5020 -3.8850 0.0280 S 0 0
I have to choose ONLY the following data:
0.3230 -0.6380 -0.7700 C 0 0
1.1810 -1.2460 -1.7340 C 0 0
2.5950 -1.1640 -1.6010 C 0 0
3.1670 -0.4730 -0.5020 C 0 0
2.2620 0.0980 0.4020 C 0 0
0.8930 0.0350 0.2990 N 0 0
4.8610 -0.3640 -0.3230 S 0 0
and ignore all the remaining data ...Although, i figured out grep/^ / can be used to take up the data, but im not able to exclude the foll data:
-1.3610 -1.4670 -0.0270 C 0 0
-1.4000 -2.8910 -0.0080 C 0 0
-0.1970 -3.6480 0.0080 C 0 0
1.0590 -2.9880 0.0060 C 0 0
1.0270 -1.5900 -0.0130 C 0 0
-0.1270 -0.8360 -0.0290 N 0 0
2.5020 -3.8850 0.0280 S 0 0
Could anyone gimme an idea how to go about this?? Thank you in advance... Best Wishes for the New Year '10