[MPlayer-users] BUG: stream_file.c: reconnects to fifos

Tom Evans tevans.uk at googlemail.com
Thu Aug 23 17:55:28 CEST 2012


On Wed, Aug 22, 2012 at 9:45 PM, PyroPeter <tristan at pyropeter.eu> wrote:
> On 08/22/2012 10:17 PM, Ron Johnson wrote:
>> Would an alternative be:
>> for f in $(find /stuff); do mplayer "$f"; done
>
> No, because it is really hard to get bash to loop over a list of files
> with spaces in the filenames.

I don't want to get too OT with advanced bash scripting, but
find-while-read loop is the bash solution for this.

find .. | while read fn ; do mplayer "$fn" ; done

However, for OPs use, what he was originally doing is probably better
- more control.

Cheers

Tom


More information about the MPlayer-users mailing list