我不知道如何使用 Fish shell 进行 for 循环。我总是不得不放弃 Fish 来在 bash 中运行它。
以此为例:
for i in $(cat subdomains); do curl $i | html2text >> websites
Run Code Online (Sandbox Code Playgroud)
我得到:
fish: $(...) is not supported. In fish, please use '(cat)'.
for i in $(cat subdomains); do curl $i | html2text >> websites
^
Run Code Online (Sandbox Code Playgroud)
Row*_*Row 10
for i in (cat subdomains); curl $i | html2text; end >> websites
Run Code Online (Sandbox Code Playgroud)
就是答案
| 归档时间: |
|
| 查看次数: |
4438 次 |
| 最近记录: |