Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shell 环网鱼壳_Shell_Fish - Fatal编程技术网

Shell 环网鱼壳

Shell 环网鱼壳,shell,fish,Shell,Fish,我不知道如何使用鱼壳做for循环。我一直不得不退出fish以在bash中运行它 以此为例: for i in $(cat subdomains); do curl $i | html2text >> websites 我得到: fish: $(...) is not supported. In fish, please use '(cat)'. for i in $(cat subdomains); do curl $i | html2text >> websites

我不知道如何使用鱼壳做for循环。我一直不得不退出fish以在bash中运行它

以此为例:

for i in $(cat subdomains); do curl $i | html2text >> websites
我得到:

fish: $(...) is not supported. In fish, please use '(cat)'.
for i in $(cat subdomains); do curl $i | html2text >> websites
         ^

不是回答,而是延伸的评论

相关文档的链接:

请注意,命令替换将返回表示命令输出的每一行的值列表。这使得您可以使用
作为line-in(cat…
,在bash中这样做是不可靠的

for i in (cat subdomains); curl $i | html2text; end >> websites

答案是

fish与bash或任何其他unixshell都不兼容。它有自己的语法,即。下次提问之前,请做些调查