From: Giuseppe Lettieri Date: Sun, 18 Aug 2013 09:00:58 +0000 (+0200) Subject: take only the first address returned by host X-Git-Tag: sliver-openvswitch-2.0.90-1~23 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=f6af8723d0dd9f4118c7d4c650e8ecb427c5d723 take only the first address returned by host --- diff --git a/planetlab/exp-tool/Makefile b/planetlab/exp-tool/Makefile index ef48321e8..9b36471ea 100644 --- a/planetlab/exp-tool/Makefile +++ b/planetlab/exp-tool/Makefile @@ -173,7 +173,7 @@ cache/status.%: FORCE cache/host.%: @echo "IP lookup for $(call display,$*)" - @host $(HOST_$*) | sed -n 's/^.*has address *//p' > $@ + @host $(HOST_$*) | sed -n '/^.*has address */{s///p;q}' > $@ cache/db.%: @echo "Starting db server on $(call display,$*) - logs in $(call log,$@)"