gpt4 book ai didi

bash - 将文本文件拆分为多个文件

转载 作者:行者123 更新时间:2023-11-29 08:51:53 24 4
gpt4 key购买 nike

我有一个大型文本文件,其中包含 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.

最佳答案

您可以使用拆分并将“每个输出文件的行数”设置为 2。每个文件将有一个文本行和一个空行。

split -l 2 file

关于bash - 将文本文件拆分为多个文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16273069/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com