From: Jeremy Katz Subject: Re: [Xen-changelog] Adding a second IP address onto eth0 causes the vif-* hotplug scripts to Date: Wed, 22 Feb 2006 17:04:29 -0500 Message-ID: <1140645869.17927.21.camel@orodruin.boston.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, 2006-02-22 at 21:56 +0000, Xen patchbot -unstable wrote: > - ip addr show "$1" | awk "/^.*inet.*$1\$/{print \$2}" | sed 's,/.*,,' > + ip addr show "$1" | awk "/^.*inet.*$1\$/{print \$2}" | sed 's,/.*,,' | head -1 As previously stated, head -1 is deprecated syntax and makes some versions of coreutils barf. Please use the more posixly correct 'head -n 1' instead Jeremy