Shell 环网鱼壳
我不知道如何使用鱼壳做for循环。我一直不得不退出fish以在bash中运行它 以此为例: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 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都不兼容。它有自己的语法,即。下次提问之前,请做些调查