Evolution attachments with spaces in filenames

2004-11-08 Thread Cameron Hutchison
I'm using evolution 2.0.2 to read my email. When I get email with attachments from people in the windows world, often the filenames will have spaces in them. When I go to save the attachment to disk, the spaces in the filename are changed to underscores. Is there any way to turn off this behaviou

Re: bash: for to, reading escaped spaces in filenames

2003-07-13 Thread Fraser Campbell
On July 13, 2003 06:05 am, David selby wrote: > I need to scan a directory for the file names contained in it. > > for _scantox in $(ls $_tox); do > . > done If I expect to find files with spaces I always use some variant of this: ls /somewhere | while read file; do something "$file" don

Re: bash: for to, reading escaped spaces in filenames

2003-07-13 Thread David selby
Jeff Schaller wrote: David selby <[EMAIL PROTECTED]> wrote: I need to scan a directory for the file names contained in it. However some of the file names are in the form of 342345\ remind\ for\ apt-get\ update ie they have escaped spaces in the name. Without resorting to c

Re: bash: for to, reading escaped spaces in filenames

2003-07-13 Thread David selby
Steve Lamb wrote: On Sun, 13 Jul 2003 11:05:41 +0100 David selby <[EMAIL PROTECTED]> wrote: I need to scan a directory for the file names contained in it. for _scantox in $(ls $_tox); do . done Why use ls? Use the shell's globbing. IE, poor man's ls: bash-2.05b$ echo * De

Re: bash: for to, reading escaped spaces in filenames

2003-07-13 Thread Jeff Schaller
> David selby <[EMAIL PROTECTED]> wrote: > >I need to scan a directory for the file names contained in it. > >However some of the file names are in the form of > >342345\ remind\ for\ apt-get\ update > > > >ie they have escaped spaces in the name. > >Without resorting to complex string manipulati

Re: bash: for to, reading escaped spaces in filenames

2003-07-13 Thread Shawn Lamson
On Sun, July 13 at 11:05 AM EDT David selby <[EMAIL PROTECTED]> wrote: >I need to scan a directory for the file names contained in it. > >for _scantox in $(ls $_tox); do >. >done > >works just file with _scantox holding the file name, However some of the >file names are in the form of >342345

bash: for to, reading escaped spaces in filenames

2003-07-13 Thread David selby
Hello, I need to scan a directory for the file names contained in it. for _scantox in $(ls $_tox); do . done works just file with _scantox holding the file name, However some of the file names are in the form of 342345\ remind\ for\ apt-get\ update ie they have escaped spaces in the name. I

Re: spaces in filenames

2003-02-06 Thread Paul Johnson
On Thu, Feb 06, 2003 at 01:11:26PM -0500, Sheldon Lee-Wen wrote: > However, some of the files have spaces in the names, like "My File.html" > How do I get $doc to have the correct file name? Quote the filename. -- .''`. Baloo <[EMAIL PROTECTED]> : :' :proud Debian admin and user `. `'`

Re: spaces in filenames

2003-02-06 Thread Travis Crump
Sheldon Lee-Wen wrote: Hi, I'm trying to write a script where I can get the names of files in a directory. Normally this is easy, like this: for doc in `ls /var/www/htlml/files` do echo $i done However, some of the files have spaces in the names, like "My File.html" How d

Re: spaces in filenames

2003-02-06 Thread Cameron Hutchison
Once upon a time Sheldon Lee-Wen said... > Hi, > >I'm trying to write a script where I can get the names of files in a > directory. Normally this is easy, like this: > >for doc in `ls /var/www/htlml/files` > do > echo $i > done > > However, some of the fi

Re: spaces in filenames

2003-02-06 Thread Matthew Weier O'Phinney
-- Sheldon Lee-Wen <[EMAIL PROTECTED]> wrote (on Thursday, 06 February 2003, 01:11 PM -0500): > Hi, > >I'm trying to write a script where I can get the names of files in a > directory. Normally this is easy, like this: > >for doc in `ls /var/www/htlml/files` > do >

Re: spaces in filenames

2003-02-06 Thread Andreas J. Guelzow
On Thu, 2003-02-06 at 11:11, Sheldon Lee-Wen wrote: > Hi, > >I'm trying to write a script where I can get the names of files in a > directory. Normally this is easy, like this: > >for doc in `ls /var/www/htlml/files` > do > echo $i > done > > However, som

spaces in filenames

2003-02-06 Thread Sheldon Lee-Wen
Hi, I'm trying to write a script where I can get the names of files in a directory. Normally this is easy, like this: for doc in `ls /var/www/htlml/files` do echo $i done However, some of the files have spaces in the names, like "My File.html" How do I