我不确定如何使用 fish shell 进行 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); curl $i | html2text; end >> websites
就是答案
关于shell - 循环oneliner的 fish shell ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58980459/