From owner-freebsd-questions@FreeBSD.ORG Fri Feb 11 20:58:54 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF05516A4E1 for ; Fri, 11 Feb 2005 20:58:53 +0000 (GMT) Received: from mail.adventuras.no (mail.adventuras.no [194.63.250.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id A092843D5C for ; Fri, 11 Feb 2005 20:58:52 +0000 (GMT) (envelope-from lars+lister.freebsd@adventuras.no) Received: from mail.adventuras.no (seven [127.0.0.1]) by mail.adventuras.no (8.12.10/8.12.10) with ESMTP id j1BKwSD6018994 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 11 Feb 2005 21:58:28 +0100 Received: (from apache@localhost) by mail.adventuras.no (8.12.10/8.12.10/Submit) id j1BKwST5018992; Fri, 11 Feb 2005 21:58:28 +0100 Received: from 213.236.228.129 (SquirrelMail authenticated user lars) by mail.adventuras.no with HTTP; Fri, 11 Feb 2005 21:58:28 +0100 (CET) Message-ID: <56496.213.236.228.129.1108155508.squirrel@mail.adventuras.no> In-Reply-To: References: Date: Fri, 11 Feb 2005 21:58:28 +0100 (CET) From: "Lars Kristiansen" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.4-1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Adventuras: du kan filtrere etter AdvSpamScore over 5-10 X-Adventuras-SpamCheck: not spam, SpamAssassin (score=-5.399, required 7, autolearn=not spam, ALL_TRUSTED -3.30, AWL 0.50, BAYES_00 -2.60) X-MailScanner-From: lars+lister.freebsd@adventuras.no Subject: Re: ye ol xargs unterminated quote error, thought it was gone? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 20:58:54 -0000 > when I use the usual: > > find . -type f -print | xargs grep -sl foobar Have you tried: find . -type f -print0 | xargs -0 grep -sl foobar > > i get; > > xargs unterminated quote error and have to use: > > find . -type f -print | sed 's/^\(.*\)$//'\1'/' | xargs grep -sl foobar > > to quote the output from find. anyone know a more elegant solution? > > thoughts? > > ken; > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >