我在每個摘要之間都有大文本文件,其中包含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