Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hmm, I see one problem in the first script here; the character conversion line is missing a right bracket and some single qoutes. The line should be
newname=`echo $file | tr '[A-Z]' '[a-z]'`
Does that help? Also, instead of doing the "bash blah" at the prompt, it's easier to do (assuming the script file is "script" ) "chmod u+x script" and then run it with "./script".
Ah, yes, I made that correction before actually, I copied it from the post.
For ze' script easierness:
***START OF LOG***
jalal@computer:~$ rename noio noio.script
jalal@computer:~$ chmod u+x noio.script
chmod: getting attributes of `noio.script': No such file or directory
jalal@computer:~$ ***END OF LOG***
Well, it seems that there is a rename command, but what people use is "mv"; "mv oldfile newfile". I never use the "bash blah", but I think it works
That kind of research is really interesting, but what if the implants are proprietary? Pay $100 a month to get my arm to move the way I want... And what about crashes and reboots? The way things seem to go with the patents on genes - which is completely nuts - it wouldn't surprise me... Ah, sorry about the distopia, it was meant as a joke in the beginning, but I guess I got off track
Behhh...i dont have much experience btw...tried linux out a few different times on my main computer..but because of the lack of support for learning...i typed exit and dropped back to you know what, by you know who. HERES A SECRETTT btw, shhh, its free. ...but yea...any ideas with what could be wrong with it? many thanks again
OK, the script I wrote isn't very good since it will change it's own name if it's in the wrong dir I really don't understand what's going wrong in your case, but anyway, here's how I would do it:
1) Open an editor, write the script, and save it in, for instance, my home dir, maybe as noio. Since the script is a bit bad, the dir variable has to be something other than the directory that the script is in.
2) Quit the editor, and issue "chmod u+x noio" at the terminal prompt.
3) Now it should be enough to do "./noio" at the prompt.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.