我在每个摘要之间都有大文本文件,其中包含1000个带有空行的摘要。我想将这个文件分成1000个文本文件。 我的文件看起来像将文本文件分割成多个文件
16503654 Three-dimensional structure of neuropeptide k bound to dodecylphosphocholine micelles. Neuropeptide K (NPK), an N-terminally extended form of neurokinin A (NKA), represents the most potent and longest lasting vasodepressor and cardiomodulatory tachykinin reported thus far.
16504520 Computer-aided analysis of the interactions of glutamine synthetase with its inhibitors. Mechanism of inhibition of glutamine synthetase (EC 6.3.1.2; GS) by phosphinothricin and its analogues was studied in some detail using molecular modeling methods.
我可能会建议,以避免在一个目录下创建太多的文件或目录。它肯定会减慢stat(2)调用。一千个不是一个大问题,但有一万个可以。当然,这个限制取决于您使用的机器(HDD),操作系统和文件系统。 – TrueY 2013-04-29 09:05:27
可能重复[Split a .txt file based on content](http://stackoverflow.com/questions/8544684/split-a-txt-file-based-on-content) – tripleee 2013-06-28 04:35:09
可能的重复[Split one file into多个文件基于分隔符](http://stackoverflow.com/questions/11313852/split-one-file-into-multiple-files-based-on-delimiter) – Gilles 2013-07-02 12:52:13