From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 14:54:05 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1BA3106566C for ; Wed, 27 Feb 2008 14:54:05 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 618C08FC16 for ; Wed, 27 Feb 2008 14:54:05 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=0) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id m1RErmBA021403; Wed, 27 Feb 2008 16:53:56 +0200 Received: by kobe.laptop (Postfix, from userid 1000) id 9396E22802; Wed, 27 Feb 2008 16:53:41 +0200 (EET) Date: Wed, 27 Feb 2008 16:53:41 +0200 From: Giorgos Keramidas To: RW Message-ID: <20080227145341.GA4419@kobe.laptop> References: <20080227100132.G1831@wojtek.tensor.gdynia.pl> <47C52A64.5000701@locolomo.org> <20080227111551.GA2403@kobe.laptop> <20080227142153.73b5a680@gumby.homeunix.com.> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080227142153.73b5a680@gumby.homeunix.com.> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.971, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.43, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: argument list too long X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 14:54:06 -0000 On 2008-02-27 14:21, RW wrote: > On Wed, 27 Feb 2008 13:15:51 +0200 Giorgos Keramidas wrote: > > one can easily write: > > > > find . -name '*.ogg' | \ > > while read file ; do \ > > blah "${file}" > > done > > If blah is interactive, it will try to take its input from the pipe > instead of the terminal. Is there a way around this? (I know xargs can > handle it with -o) You can use /dev/tty as input in the loop iteration: find . -name '*.ogg' | \ while read file ; do \ blah "${file}" < /dev/tty ; \ done