我正在尝试:curl https://www.biblegateway.com/passage/?search=Hebrews%202:17-18&version=ESV -o test.out
然而,当这完成时(在我按Enter键之后),该文件为空。在我按Enter键之前,curl
不会终止。
所有真的想要(我认为),只是og:description
部分:
<meta property="og:description" content="For this reason he had to be made like them, fully human in every way, in order that he might become a merciful and faithful high priest in service to God, and that he might make atonement for the sins of the people. Because he himself suffered when he was tempted, he is able to help those who are being tempted."/>
答案 0 :(得分:2)
因为URL包含由shell解释的特殊字符。特别是&
在后台启动命令(&
左侧的所有内容),然后是{&amp;}中右侧的version=ESV
。是用于设置变量的shell语法。
简短的故事,引用网址,以便shell不解释它:
curl 'https://www.biblegateway.com/passage/?search=Hebrews%202:17-18&version=ESV' -o test.out