相关疑难解决方法(0)

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

我有一个大文本文件,每个摘要之间有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)

unix bash awk

9
推荐指数
1
解决办法
2万
查看次数

向stderr报告HTTP响应标头?

我已经使用curl -i http://website.com了很长时间了。很棒,它报告了响应头和信息。

我还使用了一种jq可以解析和打印JSON 的工具。我想做以下事情:

curl -i http://website.com | jq -r .
Run Code Online (Sandbox Code Playgroud)

问题是HTTP标头转发到jq

有没有一种方法可以重定向-i到标准错误?

curl

5
推荐指数
2
解决办法
134
查看次数

标签 统计

awk ×1

bash ×1

curl ×1

unix ×1