Results 1 to 3 of 3

Thread: What does this mean? #red.txt#

  1. #1

    Default What does this mean? #red.txt#

    I have a /home/xx/zz/red.txt file,
    in /home I made a symbolic link to this red.txt file
    I edited the red.txt file before with vi en emacs.

    Now I notice a #red.txt# file. In the same directory I later created the red.txt again
    And now I have #red.txt# and red.txt in the same directory.
    I remember #red.txt# was a file that I used before.

    This file cannot be edited with vi...if i try to change with vi no problem, but if I try to save: error message no file name.

    1) What do the # # mean?
    2) How can I delete it, $ rm #red.txt# gives the error
    message missing operand.

    Many thanks for answering.

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,454

    Default Re: What does this mean? #red.txt#

    AFAIK it's an emergency save. If you know your original is sound, you can safely delete it. Otherwise it should be picked up next time you open the main file.

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,369

    Default Re: What does this mean? #red.txt#

    Quote Originally Posted by feetjai View Post
    How can I delete it, $ rm #red.txt# gives the error
    message missing operand.
    In the shell (bash) a # means that the rest of the line is comment. So the command then is
    Code:
    rm
    I think you will understand that there is no operand there and rm needs at least one operand.
    Try
    Code:
    rm '#red.txt#'
    And when you have some time left, read a bit in
    Code:
    man bash
    and/or search for a shell tutorial in the web.
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •