Try this:
awk '{print $1} testfile | xargs -i ping {}
HTH.
Ed
On Fri, 22 Dec 2000, David Brett wrote:
>
> I am trying to pipe to ping without success.
>
> awk '{print$1} testfiles | ping -nc 1
>
> testfile is
>
> 10.1.1.1 server1
> 10.1.1.2 server2
>
> Any ideas why I can't pipe to ping?
>
> david
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
