Re: [linux-audio-user] ardour and mp3?

From: Brian Dunn <job17and9@email-addr-hidden>
Date: Tue Feb 06 2007 - 21:49:09 EET

Adam Sampson wrote:
> Brian Dunn <job17and9@email-addr-hidden> writes:
>
>
>> for i in `ls *.mp3`; do
>>
>
> That won't work if the filenames contain spaces (since the shell will
> split ls's output on spaces), and it's needlessly inefficient. It's
> better to say:
>
> for i in *.mp3; do
>
> or if you really do want to use the output of a command, then:
>
> find . -name '*.mp3' | while read i; do
>
> (Not supporting spaces in filenames in the modern world is silly --
> particularly for music files! Newlines I'm less concerned about...)
>
>
Well, I stand corrected I've never used that while syntax before. It
looks useful. thanks.
Received on Wed Feb 7 00:15:02 2007

This archive was generated by hypermail 2.1.8 : Wed Feb 07 2007 - 00:15:02 EET