【发布时间】:2013-04-22 18:57:40
【问题描述】:
我有一个包含 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)、操作系统和文件系统。