I have text file like this
1. some topic a 20p ID: 20 2. something topic another here there ID: 30 3. ... here come another ID: 40
They are separate by two newlines. How could I split this into separate files? The split could use
ID as well, but most examples I have seen so far use patterns as the header of a new file. Anything using perl python or a shell script is fine.