如何将参数传递给bash命令 [英] How to pass arguments to bash command

查看:87
本文介绍了如何将参数传递给bash命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在第三个命令-d参数中传递此结果,但是我失败了.

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

推荐答案

您可以尝试 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.

这篇关于如何将参数传递给bash命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆