Ubuntu :: Mlabel Strange Characters After Renaming
Jun 23, 2011
although I am not an Ubuntu user, hopefuly I'll find someoe to give me a hand. I am experiencing problem with mlabel command. My system is Mandriva 2010.2, XFCE, Mtools version 4.0.13. I would be grateful for any help.
I have a folder with various subfolders of files. These files all have two extra characters on the end that I want to get rid of. How would I go about telling the terminal to go into X directory and every subdirectory of X directory, look for all files with the extra characters, remove them, and keep everything else the same?
I have a bunch of files that I need to rename, ordinarily this is pretty easy task. The problem here is that the file names have Chinese / Japanese characters. ie [$$$$$$$$].SOMETHING BLAH BLAH.ext Where all the "$$$$" are insert Chinese characters. The problem is that sed or perl doesn't seem to handle the Chinese characters correctly so using a regular expression like this 's/^[*.]//' which would normally work doesn't. From what I have read so far I believe these characters are double encoded UTF-8 (not 100% sure) which could be the problem. So far I've tried numerous different regex's as well as playing around with convmv to see if I could convert the filenames to just single encoded characters but I've had no luck.
This happened to me first time when i installed VLC Player,and now it happens in QT Designer too I dont know if its relevant,but when i installed Ubuntu,i installed it in Serbian language (cyrilic) and than switched to English.
I did a minimal install of Fedora 13 (i686), added X Window & LXDE groupinstalls, and xorg-x11-fonts-base, switched to level 5 in /etc/inittab.When rebooting, the First Process indeed starts, but any character seems to be replaced with squares. What am I missing ?
In this case its the french accented e that is getting translated:[test]$ touch dd touch: cannot touch `351dd': No such file or directory the thing is the folder test is an smb mount. The windows server which is dropping files into it is able to make the file visible but the app running on the linux can't fetch it because the name is 'unexpected'if I create a file anywhere else e.g. in /tmp/ with the name response.txt it is fine. When I ls I see r?sponse.Can you advise me if I should be looking at the smb config AND the host config and give me some pointers as to where to get started trying to solve this.
when i run dpkg-reconfigure locales and the gui comes up its mostly strange characters like in the picture.URL...Its like that on every gui im opening.its an vps im ssh'ing to. So my first guess was that it was an ssh client error but i cant change anything in the client,im using tunnelier.
When I open a terminal or konsole window, output (either STDOUT or STDERR) sometimes contains funny characters instead of something meaningful. Can someone explain how I might correct this situation?
ANALYSIS: One very repeatable example involves using the manual page command
Code: man set... man page output ...upstart - event-based init daemon
In my copy of the output, there are several problems in the very first screen. In the synopsis section, there is "{ value | ?value? ..." Replace the '?' with a lower-case-a-under-a-carat character (a-hat). I suspect the garble character might be apostrophe in real life.
In other places, I see var?/able or how?/ever or trans?/action where the '?' is again a-hat and the '/' represents end of line or newline. I suspect the garble character might be a hyphen in real life.
All of this suggests that there is a conflict between the character stream written to STDOUT by the man command and the character-display settings (is that "code page" or similar?) of the specific terminal or konsole in use.
In specific, I use konsole v1.6.6 from KDE v3.5.10. In general, I'm running Ubuntu Hardy (v8.04.3 LTS).
i was trying to re-label my flash drive and i manged to with the help of this command
mlabel -i /dev/sdc1 -s ::test
what does the -i option means cause after i read the manual pages i couldn't find it there. mlabel only takes the "v" "s" "c" switches and no "i" and when I remove the -i option from the whole command don;t work and i can't re-label. its just driving me crazy that every one is using it and no tells what does it do.
After that, the USB drive will no longer mount. Here is the entries from my syslog.
Code: Select allFeb 17 05:38:18 office kernel: [ 1777.196029] usb 3-1.4.1: new full-speed USB device number 12 using uhci_hcd Feb 17 05:38:18 office kernel: [ 1777.299177] usb 3-1.4.1: not running at top speed; connect to a high speed hub Feb 17 05:38:18 office kernel: [ 1777.326177] usb 3-1.4.1: New USB device found, idVendor=0781, idProduct=5575 Feb 17 05:38:18 office kernel: [ 1777.326184] usb 3-1.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Feb 17 05:38:18 office kernel: [ 1777.326187] usb 3-1.4.1: Product: Cruzer Glide Feb 17 05:38:18 office kernel: [ 1777.326190] usb 3-1.4.1: Manufacturer: SanDisk
[Code] ....
I don't know why it was set to read-only or how. All I know is there are files on the USB drive which I am desperate to recover.
What command could I use in terminal to delete all ASCII characters? That is, delete a-z, A-Z, 0-9, and all punctuation? I have a file containing Chinese characters, and I want to remove everything else and leave just the Chinese.
I can use grep to leave only the lines that have Chinese in them, but this still leaves a lot of non-Chinese stuff on those lines. Does anyone know how I could actually remove everything that isn't Chinese?
While modifying the definition of my PS1, I saw that "[" and "]" markers should be added to help bash to compute the right display lenght. Many exemples on the web do not use them or even mention them.I searched for a solution to add them automatically, like with sed, but I didn't find any example.Are they still needed and is there a recommandation not to use sed to define PS1?
I have my OpenSuse 11.1 box set up with utf-8, however, every time I try to open a file with utf-8 characters with vi it can't handle those characters properly.
I'm trying to batch rename 3,300 photos, and can't figure it out.
I've tried digiKam and KRename, however I can't figure out how to simply rename the files as such:
~/Pictures/[year]/[month]/[datetime].JPG
where the year, month, and datetime are when the picture was taken, via EXIF data. In digiKam, I can't figure out how to rename the files to move to a different dirrectory than their current one, and with KRename, I can't figure out how to only use the year for the directory instead of the entire datetime.
I am trying to follow the instructions in the smb.conf file which says, "name original file smb.conf.master and create the "real" config file with test parm -s smb.conf.master >smb.conf".
First I made myself the owner of the smb.conf file. Then I tried to rename the smb.conf file to smb.conf.master. When I try to do this with: rename smb.conf smb.conf.master the result is: Bareword "smb" not allowed while "strict subs" in use at (eval 1) line 1.Bareword "conf" not allowed while "strict subs" in use at (eval 1) line 1.
Can someone tell me what this means, (why it is happening) and what do I need to do in order to rename the smb.conf file to smb.conf.master.
All I want to do is rename the folder containing my VMs but when I do that it breaks the VMs. In the settings of the individual VMs under Storage, there is a location for the .vdi file which I think may be the culprit but I see no way to change it. So is there a way to easily just rename the folder without importing/exporting the entire VM?
I have around 150+ folders in one directory. All contains some pdf files. Now i want to give some prefix no. to folder only not the files inside. How can i give the prefix to all my folders?
Eg : OLD FOLDER NEW FOLDER ABC/ 8562-ABC/ AABC/ 8562-AABC/
Alright, after trying to organize shortcuts in Wine's menu (which did not work), I ended up hitting the 'Revert' button, which changed the names of most of the folders:
Screenshot
As you've probably guessed, I want to remove "wine-Programs-" from the beginning of the folder names. I've tried using the menu editor to do this, but the 'Properties' button does not seem to work on anything I did not create myself. How do I go about editing the names?
I would also like to know how to move the MS Office shortcuts into a custom folder/menu. They refuse to drag into any folder I make.
A potentially very dumb question but still ... I want to create a place that I can choose in the panel at the top left. So I - go to Nautilus (tree view in sidepane) down in the folders until I see my destination on the left; - switch to places in the sidepane and drag and drop the folder onto the places thing.
Then, the folder shows up with the name there, which is something like "Web_ABC". So I want to change it to "Web" only. On my 64bit machine, this works, on my 32bit machine, it doesn't. Whenever I change the name and press ENTER, it goes back to the old name. On the 64bit system, it only worked when I went to some other place once, and then fine, but on the 32bit one, no chance.
I have a large collection of pictures, that are arranged in lots of directories such as pictures/june/001.jpg, pictures/july/005.jpg.I was wondering if it would be possible to move these pictures around so that they are also renamed to their parent folders name, such as moving picture/june/001.jpg to picture/june_001.jpg Is there an easy way to do this or will i just have to write a shell script?
Whenever I download a file using Firefox or Google Chrome and it has a ' character on it's filename, the file is renamed and a is added before the '. It's really annoying and I'd like to know how can I solve this issue.
This has happened twice to me. I'm editing a filename on the desktop, for example, I have a part of the name highlighted and press delete. Inadvertently, I press delete again, but with nothing highlighted. The file is deleted, but is not added to the recycle bin (possible bug).
I believe that is what is happening. I cannot seem to recreate it purposefully on my work computer --I had done this at home this morning while sans-coffee.
I've used Shotwell to give titles to a lot of photos, and now realise that I want to also rename those files using the title. I see that Shotwell saves the title into XMP IPTC structure, using this: dc:title[x]. how to batch rename a bunch of files using this data?
I've got three server folder things but I'm wondering whether I could rename them to something a bit more neater.When I do try renaming one it comes up with this error.
its very easy to rename a flash disk or even a memory card or any storage in windows because all you have to do is right click on the disk and an option is there rename, i have failed to find a way of doing this in linux ubuntu 8.04, but i understand its possible even in the command line, i need to rename my flash disk