我有一个大文本文件,每个摘要之间有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.
Run Code Online (Sandbox Code Playgroud) 我已经使用curl -i http://website.com了很长时间了。很棒,它报告了响应头和信息。
我还使用了一种jq可以解析和打印JSON 的工具。我想做以下事情:
curl -i http://website.com | jq -r .
Run Code Online (Sandbox Code Playgroud)
问题是HTTP标头转发到jq。
有没有一种方法可以重定向-i到标准错误?