argument list too long
Giorgos Keramidas
keramida at ceid.upatras.gr
Wed Feb 27 14:54:06 UTC 2008
On 2008-02-27 14:21, RW <fbsd06 at 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
More information about the freebsd-questions
mailing list