Re: [SLE] bash Script Using Filenames with Embedded Spaces
- From: Randall R Schulz <rschulz@xxxxxxxxx>
- Date: Mon, 6 Nov 2006 20:08:01 -0800
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
- Follow-Ups:
- Re: [SLE] bash Script Using Filenames with Embedded Spaces
- From: Lucky Leavell
- Re: [SLE] bash Script Using Filenames with Embedded Spaces
- From: Geir A. Myrestrand
- Re: [SLE] bash Script Using Filenames with Embedded Spaces
- References:
- [SLE] bash Script Using Filenames with Embedded Spaces
- From: Lucky Leavell
- Re: [SLE] bash Script Using Filenames with Embedded Spaces
- From: Randall R Schulz
- Re: [SLE] bash Script Using Filenames with Embedded Spaces
- From: Darryl Gregorash
- [SLE] bash Script Using Filenames with Embedded Spaces
- Prev by Date: Re: [SLE] bash Script Using Filenames with Embedded Spaces
- Next by Date: Re: [SLE] Why this attitude on this list against newbies? (Was: Re: [SLE] CPU-Z For Linux?)
- Previous by thread: Re: [SLE] bash Script Using Filenames with Embedded Spaces
- Next by thread: Re: [SLE] bash Script Using Filenames with Embedded Spaces
- Index(es):