I have a file on Linux, containing the coordinates of thousands of molecules. Each molecule starts with a line containing always the same pattern:
@<TRIPOS>MOLECULE
And then continues with other lines. I would like to split the file into multiple files, each containing a certain number of molecules. What is the easiest way to do this?
@<TRIPOS>MOLECULE
, so it could occur anywhere in the line, or is the line only@<TRIPOS>MOLECULE
? Or perhaps it starts with@<TRIPOS>MOLECULE
? Can the pattern occur anywhere else?