How to pass arguments to bash command [duplicate]

我们两清 提交于 2021-02-05 09:28:54

问题


I try to pass this result in the third command -d argument, But i failed.

$ cat asnlookups_domains_ip.txt | awk '{print $1}' | amass intel -whois -d 
flag needs an argument: -d


回答1:


You could try xargs:

cat asnlookups_domains_ip.txt | awk '{print $1}' | xargs -n1 amass intel -whois -d

It passes the standard input as arguments after your command.



来源:https://stackoverflow.com/questions/65825618/how-to-pass-arguments-to-bash-command

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!