[CLUE-Tech] mpg123 - recursively play directories? (solved?)

Lynn Danielson lynnd at techangle.com
Mon Aug 26 19:18:31 MDT 2002


Sean LeBlanc wrote:
> On 08-26 16:38, Dave Price wrote:
>> On Mon, Aug 26, 2002 at 04:08:11PM -0600, Sean LeBlanc wrote:
>>> On 08-26 15:38, Dave Price wrote:
>>>> On Mon, Aug 26, 2002 at 03:03:30PM -0600, Sean LeBlanc wrote:
>>>>> On 08-26 14:52, Dave Price wrote:
>>>>>> Is there a simple syntax to use with mpg123 to play an arbitrary
>>>>>> directory 'recursively'?
>>>>>>
>>>>> Would xargs work? Something like this: 
>>>>>
>>>>> ls -R | xargs mpg123 {}\;
>>
>>What does the {}\; do?
>>
> 
> Good question. In the above case, I think it's actually unneeded. 

I'd agree.  If you want to use the xargs default replace string,
"{}", then you need to use the -i switch, otherwise xargs will try
to treat it as a filename.  When used with the -i switch {} will
be replaced with the arguments from the pipe, very much like find.

Fwiw,

Lynn




More information about the clue-tech mailing list