[Novalug] Messed up file title problem

Bryan J. Smith b.j.smith at ieee.org
Sat Mar 20 22:51:49 EDT 2010


You have two (2) options.

One, traditional POSIX (UNIX/Linux), shell ...
"Escape" it -- i.e., backslash:  
  $ rm Test\ 1.odt

Two, same as Windows, "quote" it:  
  $ rm "Test 1.odt"

The latter has issues at times (even under Windows).

BTW, Using single quotes (') forces most things to be taken
literally, whereas substitution can happen with double quotes (").

But "escaping" always works (long story).

-- Bryan

P.S.  Kinda surprised quoting wasn't tried, since it's what
Windows requires as well.  ;)


-- 
Bryan J  Smith           Professional, Technical Annoyance 
Linked Profile:         http://www.linkedin.com/in/bjsmith 
---------------------------------------------------------- 
Red Hat:  That 'other' American software company built on
open customer selection of options and value, instead of
controlled distribution channels of forced bundle and lock


--- On Sun, 3/21/10, cmhowe at patriot.net <cmhowe at patriot.net> wrote:

> From: cmhowe at patriot.net <cmhowe at patriot.net>
> Subject: Re: [Novalug] Messed up file title problem
> To: cmhowe at patriot.net
> Cc: novalug at calypso.tux.org
> Date: Sunday, March 21, 2010, 2:36 AM
> > List,
> >
> > This doesn't really affect the problem I am wrestling
> with, but it is an
> > annoyance and I want to deal with it.
> >
> > I inadvertently put a space in any oo word processor
> file. It reads
> > Trial 1.odt. How do I get rid of it?
> >
> > Charlie
> >
> List,
> 
> More.
> 
> Bb using chmod 7 *.odt and same *.pdf I am able to persuade
> common Linux
> commands that they are ordinary files, to be manipulated as
> I wish. But
> not if they have a space in their title. When I do
> 
>   $rm Test 1.odt
> 
> it comes back
> 
>   rm: cannot remove 'Test 1.odt': no such file or
> directories
> 
> Suggestions?
> 
> Charlie
> 
> 
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
> 



More information about the Novalug mailing list