Date: Wed, 27 Feb 2008 16:53:41 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: RW <fbsd06@mlists.homeunix.com> Cc: freebsd-questions@freebsd.org Subject: Re: argument list too long Message-ID: <20080227145341.GA4419@kobe.laptop> In-Reply-To: <20080227142153.73b5a680@gumby.homeunix.com.> References: <20080227100132.G1831@wojtek.tensor.gdynia.pl> <47C52A64.5000701@locolomo.org> <20080227111551.GA2403@kobe.laptop> <20080227142153.73b5a680@gumby.homeunix.com.>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2008-02-27 14:21, RW <fbsd06@mlists.homeunix.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080227145341.GA4419>