[英]fish shell for loop oneliner
我不确定如何使用鱼 shell 进行 for 循环。 我一直不得不放弃鱼才能在 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
是答案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.