On 2008-02-27 14:21, RW <[EMAIL PROTECTED]> 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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to