Announcement

Collapse
No announcement yet.

[Solved] Special characters in file/folder can't be modified/deleted

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Solved] Special characters in file/folder can't be modified/deleted

    hello to all! I've seen lots and lots of threads in different forums with the exact same problem but non of them seems to have a real solution or is a solution for another linux distro.

    I downloaded lots of music with torrents and some of them have special characters used in spanish or other languages (like accents and all that stuff. EX: á é ñ) and i can't access to the files in the folders or play the files with this characters. I tried to simply rename the file or folder (as i used in ubuntu) to see if that works but it tells me the file or folder doesn't exist! Someone could help me?

    #2
    Re: Special characters in file/folder can't be modified/deleted

    Give an example of one file name which you cannot rename.

    Whatever the problem characters may be, the problem can usually be worked around by using globbing on the command line.

    Code:
    test$ ls
    á é ñ.txt
    test$ mv -iv ?\ ?\ ?.txt my_file.txt
    `á é ñ.txt' -> `my_file.txt'
    test$ ls
    my_file.txt
    The following thread discusses a number of possible solutions, and maybe it will help you. (Just ignore the one post suggesting an rm command!)

    http://www.linuxquestions.org/questi...l-char-882901/

    prename should be in the repos.

    HTH

    Welcome newbies!
    Verify the ISO
    Kubuntu's documentation

    Comment


      #3
      Re: Special characters in file/folder can't be modified/deleted

      @Telengard

      thanks a lot for your reply. It worked but it's a long way to rename hundreds of files.

      After posting this thread i realized that all special characters where from other language, so i installed spanish language package to see if that worked. and it did! now all my files and folders can be accessed.

      Comment


        #4
        Re: Special characters in file/folder can't be modified/deleted

        Originally posted by CladesAffero
        thanks a lot for your reply. It worked but it's a long way to rename hundreds of files.
        Why? That's exactly why I linked you to prename.

        Originally posted by man rename
        rename - renames multiple files
        Anyway, installing the language was probably the best solution for your case. Good to know you fixed it
        Welcome newbies!
        Verify the ISO
        Kubuntu's documentation

        Comment


          #5
          Re: Special characters in file/folder can't be modified/deleted

          There's a GUI tool - Krename that seems to work well in this regard and does whole batches at once.

          Please Read Me

          Comment


            #6
            Re: Special characters in file/folder can't be modified/deleted

            Nice one, oshunluvr!

            http://www.krename.net

            The preview feature looks useful.
            Welcome newbies!
            Verify the ISO
            Kubuntu's documentation

            Comment


              #7
              Re: Special characters in file/folder can't be modified/deleted

              Thanks to both. sorry for my mistake. Since my problem was already resolved i didn't paid much attention to what i was reading. I thought it was only for 1 file

              BTW if there's a way to mark the thread as solved?

              Comment


                #8
                Re: Special characters in file/folder can't be modified/deleted

                Originally posted by CladesAffero
                BTW if there's a way to mark the thread as solved?
                Click the Modify button on your opening post and edit the Subject field. Just insert [Solved] at the beginning of the subject line.
                Welcome newbies!
                Verify the ISO
                Kubuntu's documentation

                Comment

                Working...
                X