Randall R Schulz wrote:
On Monday 06 November 2006 20:04, Darryl Gregorash wrote:
On 2006-11-06 21:50, Randall R Schulz wrote:
No, all you need to do is get rid of the quotes around *.mp3. No. The original question regards files whose names have spaces in
On Monday 06 November 2006 19:19, Darryl Gregorash wrote: them. If you do that, you'll get the undesirable malfunctions shown in the original posting. Mileage must vary, then:
Not really.
...
raven@static24-89-67-198:~> cat thingy cd /pub/music/mp3 for i in *.m3u; do echo $i; done cd ~
Do something other than echo in the loopl. Try applying sum, or ls, e.g. You'll find unless you quote $i it won't work.
Randall Schulz
Randall is right, you need to quote the variable if you use it as an argument to a program that expects one token. An example is if you want to copy the MP3 files, the first argument to cp must be the full filename, not just the first token of the filename... However, as long as echo is sufficient then it will work as pointed out by Randall. -- Geir A. Myrestrand