Re: [SLE] bash Script Using Filenames with Embedded Spaces



On Monday 06 November 2006 20:04, Darryl Gregorash wrote:
On 2006-11-06 21:50, Randall R Schulz wrote:
On Monday 06 November 2006 19:19, Darryl Gregorash 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
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

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx