[SLUG] filenames with spaces

From: Steve (steve@szmidt.org)
Date: Thu May 06 2004 - 22:48:19 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm getting stomped on this thing and for the life of me I don't seem to be
able to get around this issue.

I have a bunch (several hundred) of .wma files that I want to convert to ogg
or mp3. So I wrote a script to find and process each file.

The problem is that there are spaces in the file and directory names which I
inherited from a windows machine.

Currently my script looks like this:

for File in "`find $Dir -name '*.wma' -print0|xargs -0 ls`" ;do
        echo " $File"
        #mplayer -ao pcm "$File"
done

The problem is that it processes the whole bunch first time through, not one
at a time which is of course what I need.

Any pointer to what I'm missing would be appreciated.
- --
Steve

"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                                Benjamin Franklin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAmvj2ljK16xgETzkRApSfAJ9YNsszE0Xj29F12ksFQ2f+/1aKNACg1M+o
HFFsdLMFgr5X3mRtgxj14X8=
=sPO2
-----END PGP SIGNATURE-----

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:50:12 EDT