Ubuntu :: Change The Extensions Into Lower Case With One Command?
Jun 9, 2011
There's got to be an easy way to do this and I can't find it: I have 50 files with the extension .JPG. I want to change the extensions into lower case with one command.
I tried to add my wife , and when I put in a password for her, this error comes up."Please set a valid user name consisting of a lower case letter followed by lower case letters and numbers." I did all that and I still can't set a password for her.
I have a file like below. For all the lines (except for the ones listed as 'Unknown Owner' and N/A') I would like to change to lower case and concatenate the first and last names.Before:
Code: aaa.bbb.ccc.ddd,Unknown Owner ddd.eee.fff.ggg,N/A hhh.iii.jjj.kkk,John Doe aaa.bbb.ccc.ddd,Mary Jane
I do 'mkisofs -iso-level 1 -o image John Smith.txt'. Only an example. When I mount image, ls outputs john_smi.txt. So it has shorten to 8.3 and translated ' ' into '_'. This is in accordance with the manual, although it doesn't say the conversion will be done.
Quote:
-iso-level level ......................... With all iso9660 levels from 1..3, all filenames are restricted to upper case letters, numbers and the underscore (_). ...........................
However, as it did not reject the file name, it should have converted it to all upper case, it seems to me. And -iso-level 2|3 does the same thing.
Code:
root@darkstar:~# mkisofs -iso-level 1 -o image John Smith.txt Total translation table size: 0 Total rockridge attributes bytes: 0 Total directory bytes: 0
Its really annoying I don't have a monitor I just use VNC and putty to control my computer and when ever I vnc in and hit d all the windows minimize I tried deleting everything under .gnome2,.nautilus,.gconf and nothing. I love Ubuntu but this upgrade has been nothing but problems. I did a complete reformat and its a huge pita. its problem after problem never had this with 10.04
I want to display 4 options using the case command and refresh the screen when options 1 and 2 are chosen (no changes to the options and you get asked again to chose option), but give a message for option 3 and exit on option 4. I set this up with the script below, but choosing option 1 works and choosing option 2 exits the script.
I downloaded a source code package for an old multi-platform game. unfortunately, the author, when he created the .zip archive of the source code, zipped it in DOS, and so all of the file names are in all caps. when i run the configure script, it errors out, not being able to find any of the files (which originally were in lower case.
so, other than the extremely tedious process of renaming each file, one by one, is there any way to fix this so it will build properly? this game was written in 1996, so i don't think i'm the first person to bump into this problem.
Trouble is that ROBOTNAME is different in each of the hundred and fifty files. To make it harder, there are other gif filenames on these pages that I do not want to change. I only want the extensions to change if the address prefix is 'images/robopix/web/'. Is there any way to do this with a quick program/sed command rather than manually editing a hundred and fifty files?
i was just wondering if anybody knows of a command that i can run in the terminal to HIDE file extensions.I would apretiate this command and i dont mind if it is for ubuntu or windows.
I have a directory of a load of files without extensions. I know what the filetype should be, so is there any way of batch renaming the files to append a given extension onto it. i.e. text would be renamed as text.txt?
When I try to rename a file in a mounted NTFS file system by only changing the letter case, I receive an error message saying that it is not possible because the file already exists. This must be because ntfs is not case sensitive as regards determining a file name. However, it can use and remember whatever case you want to use. So I can change the letter case in the file's name in two steps: saving the file with a different name first and then renaming it again with the original name and the letter cases I want to use.
I have a minimal debian install, with not much more than enough to run scrotwm, I want to change the basic arrow cursor to a png I have. Is there a simpler lower level way of achieving this without having to install and modify an existing cursor theme. I installed x11-apps just to get xcursorgen... though idk if this has been an essential step or not. Anyway, I have run it on my arrow.png/arrow.cursor to create a "default" cursor file... though am lost as to where to go from there. I have no idea where the existing default cursor is located, though i suspect it's a font cursor not a icon cursor...
I wanna see the wifi signal strength.But when i run the command iwconfig , it tells me 'no wireless extensions'.By googling I found that I need to enable config option CONFIG_NET_RADIO.I see that this has to be done in boot which has config files.So I typed the command grep CONFIG_NET_RADIO /boot/<config-2.6.31.5-127.fc12.i686> (my fedora version is 2.6.31.5-127.fc12.i686).But I got the error as "bash: syntax error near unexpected token `newline' ".I dont know the reason.I also want to know if I have to install driver(ndiswrapper)for viewing wireless signal strength.I thought that the drivers will present default(am not sure).
Is there any inbuilt functionality in Unix shell script so that i can able to convert lower case string input to an upper case? I dont want to use high level languages like java,python or perl for doing the job.
I'd like to change an application's niceness from the command line but by process name rather than PID.
I can already do this:
sudo renice -10 9461
To change niceness by PID, but this isn't a static value. How do I go about replacing the 9461 with an Application-Name so the same command always works to change the niceness?
How to lower the resolution of all the images in a pdf? I searched around and couldn't find an answer to this. I have a pdf file of a textbook that I use in school but each page is an image of 2 pages of the textbook (left page, right page when the book is opened) and each image is of a very high resolution. I downloaded pdftk and pdfedit but for such a simple problem, I'm having trouble. Is there any way to do this?
I have tried converting the 380 MB PDF file to PostScript but after an hour of doing that, it stopped, and the PostScript only had about 17 pages instead of the 733. So converting it back to a PDF file to utilize pdftk's algorithms would have been worthless. I know I could split up the pdf file into sections but I'd rather just scale down all the images, or make them mid quality PNGs or high quality JPGs just so the filesize can be halved.
I need to run fsck on my Ubuntu 10.04 machine, but when trying to enter lower runlevel (with init 1), computer freezes with error message "could not write bytes broken pipe". So, how I can fix this and/or check my disk with fsck?
I installed 10.04 1st by making a partition with bootcamp on MacOSX.Then I formatted the partition according to Ubuntu's instructions. I didn't install rEFIt, because I prefer to just hit the alt (option) key.I made the necessary adjustments according to URL...Community Ubuntu Documentation - and everything seemed to be working fine.I upgraded to Maverick and everything seemed to be working fine aswell.But then I noticed, that the wireless signal keeps failing and I'm asked to put the password again and again..
I don't think this is due to the upgrade from 10.04 to 10.10, but I just noticed it recently, maybe because of the air humidity, the signal was stronger a few days a go.. don't know!!Is there anything I can do?Perhaps install a new driver, or another wificlient, like Wifi-Radar??
I just searching a way to modify a hotkey like in system->preference->keyboard shortcuts but in command line, because I want to make a configuration file and I need to delete a hotkey.
I understand the basics, where certain files are located, how to change basic things, and very basic stuff with the command line (I use it to organize my files mainly). If at all possible could you supply me with a guide - be a website or a book to:
1) Just the general layout of the system (whats in the depth of the /etc folder and what naught)
2) How to more efficiently use the command line. As in where I am not giving in and using the GUI all the time.
3) What programming language(s) should I learn. I am thinking C and Python to start.
Imagine you want to know which command is carried out when, after executing gnome-mouse-properties, you go to the Touchpad tab and click on "Enable mouse clicks with touchpad".
Another example:
Imagine you want to know the command that is executed when, after running gnome-appearance-properties, you go to the "Visual Effects" tab and click on None.
I've had a look via gnome-system-log in all the log files of the left with no success. Perhaps the commands that run when one changes things in the GUI menus are logged in some other file. Or perhaps they are not stored in any log. In this case there is probably some terminal command to know it, or some program for this.
I think that know that no xorg.conf is used by default this is something to have into account.
I decided to install Chromium OS to my dad's netbook, and it works perfectly. The only problem is that i can't change the time. Luckily, I can access a command line by pressing CTRL+ALT+T. So maybe I can change it from the command line.
Basically, I'm in the terminal and I type in:cd desktop (or downloads or whatever)and nothing happens. I'm probably just being legendarily thick, but where am I going wrong?
I upgraded to Ubuntu 10.4 and for various reasons I found myself selecting a KDE session without KDE being installed. This has locked me into a situation where I can't boot up/log in properly. I can get to a command line and start the x environment as root. How can I re-set any user's preferences to default (via the CL)? Ie, I'd like to re-set a user (myself) so that I can again choose the log in to a gnome session.
I want to move notifications both from pidgin, rhythmbox and other apps to the lower right side so that they are not so intrusive, I don't know if it's possible.