Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have tried a few of these but can't remember any names. I'm using a LiveCd session at work so can't access my normal notes lol.
Actually this time i hope to find something a little different because i want to edit the files by hand rather than thru search&replace. For a joomla website i have to rename all the uploaded files to remove the spaces between words and change the first letter of each word to UpperCase.
So i really want to convert all existing filenames to CamelCase to make them easier to read
I am a bit nervous of using bash-scripts and would rather use a gui program to do this. Thanks for the excellent link tho. Looks like something worth exploring when i get time later.
For something such as batch-renaming a bunch of files, I believe that a GUI tool, if one exists, would provide no advantage over a few lines of bash-script to accomplish the task. Perhaps I am even being generous when I say "a few lines", because this could be done in literally only a few lines at most.
Nothing to be nervous about, you just need to learn some very basic scripting, and that is something that will definitely come in handy on more than one occasion.
If you create an empty folder in your home directory or wherever (just not as root) and make some dummy files in there to test the code on, you'll likely be able to come up with a working solution in relatively short order, probably faster overall than it would have taken to find & install a GUI tool and learn how to use it. Plus, all of the code you require for this task can be found in myriad snippets of code all around LQ, particularly in the programming forum, since tonnes of folks over the years have done the same thing-- batch renaming a whack of files.
I seem to remember something like pyrenamer or something like that? At work they already see me learning css scripting and i am going to have to ask if i can learn java at work, i really don't think they would be happy to see me learning something else on their clock. I was just hoping for something so that they could see results today.
Thanks, they are kde apps aren't they? Anything for the gnome DE used in the normal Ubuntu LiveCd? Sorry i am being fussy but i would rather use an app i can use without crashing the system. The machine only has 750Mb ram so i can't install KDE along with the Gnome.
Regards from
Tom
I am a bit nervous of using bash-scripts and would rather use a gui program to do this. Thanks for the excellent link tho. Looks like something worth exploring when i get time later.
Regards from
Tom
with all due respect, the terminal (AKA command-line, shell, etc.) is often the best and safest way of doing something.
In this case, look at the "rename" command. If it is not already installed, it should be available using your package manager.
BUT: Don't attempt to install SW when running from LiveCD
Both 'answers' from pixellany have really lowered the bar in this thread. The answers from everyone else did give something useful with clear explanations, even tho those weren't exactly what i was looking for they were clear and helpful.
Both 'answers' from pixellany have really lowered the bar in this thread. The answers from everyone else did give something useful with clear explanations, even tho those weren't exactly what i was looking for they were clear and helpful.
Hi,
pixellany was merely pointing out that using the CLI has many advantages instead of relying on GUI apps, e. g. CLI commands are as 'lightweight as it gets' and most of them have been there for a long time, are well tested and therefor very robust. Especially in this case they are a very good choice, since you will also have to deal with reg. expressions when you are using a GUI tool. I know that CLI can be intimidating at first. But it's really not that bad, once you get to know it.
For what it's worth, open synaptic and search for the following
purrr
pyRenamer
gnome commander
Both 'answers' from pixellany have really lowered the bar in this thread. The answers from everyone else did give something useful with clear explanations, even tho those weren't exactly what i was looking for they were clear and helpful.
Tom6;
I hate to quibble, but I asked you to identify specifically what answers were not sensible. My interpretation of "sensible" is something which is both correct, and which fits the situation at hand.
Please do me the courtesy of explaining what was incorrect about my suggestions and why they were "lowering the bar".
I have a pretty thick skin and---unless you indulge in egregious violations of the LQ rules---I will continue to help you "no matter what". Other members--once told they are "lowering the bar"--will never again lift a finger for you......
GrapefruiTgirl had already suggested a good gui approach and even provided links so i could check her statements via another source which expanded on her relatively brief answer (brief is usually good). I rejected the cli approach and gave my reasons. Mecelec then gave a couple of excellent gui tools but it's difficult to guess which DE people are using unless you happen to know the particular distro or variant. Jayfree had given an excellent initial response by pointing me to a similar thread which i hadn't already found. But neither of pixellany's response added anything that hadn't already been given. At best it only supported GrapefruiTgirl's response and added a somewhat cryptic comment "Don't attempt to install SW when running from LiveCD" although SW doesn't appear to have been mentioned earlier and the answer doesn't let us know what SW is. As we have seen from the next post there were a number of other gui answers that would have been more appropriate. It is very kind to try to help but if you don't know an answer that adds something positive then there is no point in trying to answer unless it is to point them to elsewhere. Also giving an answer that may alienate the person asking is not good practice. Many people don't like the command-line and as we saw there was no need to try to force me onto it. Often we hear people reject linux because it is "all old and geeky" and promoting that FUD is not good practice unless we want to restrict gnu&linux usage. Crts was quick to jump to your defence but also added some very useful packages to try.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.