xargs使用

将前一个命令的结果,空格分割后每个参数执行后面的命令

awk '{print $2}' a|xargs -I {} host {}

xargs 命令教程

猜你喜欢

转载自www.cnblogs.com/276815076/p/12925291.html