Results 1 to 4 of 4

Thread: question marks in files names

  1. #1
    Join Date
    May 2006
    Location
    Houston, TX
    Beans
    Hidden!
    Distro
    Kubuntu 10.04 Lucid Lynx

    question marks in files names

    I've got multiple files with question marks in the file name. Like this for example:

    ./CONESUP/UNIVERSIDAD CAT?LICA DE COSTA RICA.pdf

    I'm trying to rename the files to something else, but every attempt fails with a "No such file or directory" error. So far I've tried quotes, a backslash, quotes and a backslash, and several searches (google and here). I even tried to rm the file using the -- option. Can someone tell me how to get these files renamed?

  2. #2
    Join Date
    Dec 2009
    Beans
    184
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: question marks in files names

    I am having no problem creating and manipulating files with question marks in their names. I am finding I don't even have to quote.

    Are you remembering to escape the spaces as well?

    If all else fails, try wildcards or a GUI.

    Edit: It occurred to me that the question marks may be encoded as characters with accents and simply displayed as question marks because the terminal's doesn't know how to display the character. So ? is not really ?.

    Anyway, you could also rename based on inode number.
    Last edited by noah++; December 28th, 2010 at 06:37 AM.

  3. #3
    Join Date
    May 2006
    Location
    Houston, TX
    Beans
    Hidden!
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: question marks in files names

    Correct. I suspect the question marks aren't question marks at all. (Not my files, I just have to clean them up.)

    I guess I've have to try the inode solution unless someone suggests something better.

  4. #4
    Join Date
    Jul 2006
    Location
    London, UK
    Beans
    818
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: question marks in files names

    Try utf8-migration-tool It's in the repositories.

Bookmarks

Posting Permissions

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