Re: [SLUG] filenames with spaces

From: Eben King (eben1@tampabay.rr.com)
Date: Fri May 07 2004 - 12:03:58 EDT


On Fri, 7 May 2004, Logan Tygart wrote:

> On Thu, 2004-05-06 at 22:48, Steve wrote:
> <snip>
> > The problem is that there are spaces in the file and directory names which I
> > inherited from a windows machine.
> <snip>
>
> Sounds like a job for a PERL script.

Bah.

find $Dir -name "*.wma" | while read filename ; do
        echo " $filename"
        mplayer -ao pcm "$filename"
done

If $Dir has a space in its name, you need to put it in "" too.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
Are you confident that you appear to be professional in your electronic
communication?  Consider this: A: No
                               Q: Can I top post? from nick@xx.co.uk

----------------------------------------------------------------------- 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:53:37 EDT