Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #14756

Re: Unnamed documents

From The Natural Philosopher <tnp@invalid.invalid>
Newsgroups comp.os.linux.misc
Subject Re: Unnamed documents
Date 2015-05-11 21:10 +0100
Organization albasani.net
Message-ID <mir2ce$jsv$1@news.albasani.net> (permalink)
References <mipv68$got$1@news.albasani.net> <wwvzj5b770g.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid> <miq29o$mf3$1@news.albasani.net> <mir0t9$miu$1@dont-email.me>

Show all headers | View raw


On 11/05/15 20:45, William Unruh wrote:
> On 2015-05-11, helge <w4h@nurfuerspam.de> wrote:
>>> helge <w4h@nurfuerspam.de> writes:
>>>> sudo 'ls -al' in my home-directory lists
>>>
>>> You don???t need sudo to list your own home directory.
>>>
>>>> 2 files 'Unnamed document 1.txt~'.
>>>> I want to delete them, but how?
>>>
>>> You say there are two files but only give one name.  At any rate to
>>> delete that one:
>>>
>>> rm 'Unnamed document 1.txt~'
>>
>> Well, the other file is named 'Unnamed document 1.txt~~'
>> Anyway it worked! Thanks.
>
> The lunacy of overloading the blank, so it can mean either just another
> character, or a word terminator is a real pain. You have to escape the
> blank to tell the system to treat it as a character rather than as a
> terminator. That can be done by quotes (single or double) or by the
> escape character, which is usually the backslash on Linux. Thus
> 'Unnamed document 1.txt~~'
> "Unnamed document 1.txt~~"
> Unnamed\ document\ 1.txt~~
>
> Or combinations
> 'Unnamed doc'ument\ 1.txt~~
>
> will work. In all cases bash treats the spaces as characters, not
> terminators. (Yes, it is the shell that does that). Note that you could
> also tell the system to use some other character as the word terminator
> if you wanted, but it is not advisable except in unusual circunstances.
> (Not that I can tell you right now how to do that)
>
> Eg in the above you could make : bash's word terminator, and then the
> spaces would be fine.
>
rm Unnamed*

will also do what you want if

ls -l Unnamed*

reveals only files you want to delete.

>
>>
>>
>>


-- 
Everything you read in newspapers is absolutely true, except for the 
rare story of which you happen to have first-hand knowledge. – Erwin Knoll

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Unnamed documents helge <w4h@nurfuerspam.de> - 2015-05-11 10:10 +0000
  Re: Unnamed documents Richard Kettlewell <rjk@greenend.org.uk> - 2015-05-11 11:17 +0100
    Re: Unnamed documents helge <w4h@nurfuerspam.de> - 2015-05-11 11:03 +0000
      Re: Unnamed documents William Unruh <unruh@invalid.ca> - 2015-05-11 19:45 +0000
        Re: Unnamed documents The Natural Philosopher <tnp@invalid.invalid> - 2015-05-11 21:10 +0100
        Re: Unnamed documents Tim Watts <tw_usenet@dionic.net> - 2015-05-11 21:34 +0100
          Re: Unnamed documents Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-05-12 01:25 +0000
  Re: Unnamed documents Tim Watts <tw_usenet@dionic.net> - 2015-05-11 11:21 +0100
    Re: Unnamed documents "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> - 2015-05-11 22:42 +0200
  Re: Unnamed documents Curt <curty@free.fr> - 2015-05-16 18:23 +0000

csiph-web