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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I've had this problem w/ the bad interpreter and I saw nothing wrong with the script/permissions. I think it was from when I cut and paste a script from here. I fixed it by deleting it and manually typing it out. Try that and see what happens.
I tried using rename before I posted my question here. I could not figure out a way to get it to do what I needed, even after reading the man pages.
Tinkster's script works fine on my linux partition, just doesnt seem to work on the windows Fat32 partition. I just moved all the files in question to my home directory and used Tinkster's script to rename them. I'll try again another time with homey's awk and sed commands, but as i am not really familiar with either of them yet, I felt it easier to just move the files to where I knew the script would work fine.
for i in `ls *.txt`
mv "$i" "01_29_$i"
to make the function rename_txt_files, which will work like a shell script. Also, make sure the script is executable (On a FAT(32) partition, all the files have the same permissions -- make sure they include execute permission for yourself) and that the file is writeable by you (again, all the permissions are the same).
Also, you can change the line mv "$i" "01_29_$i" to mv "$i" "`date +%m_%d_`$i".
Guys, these scripts work like charm, but, how hell can I replace file names with, say, 0001.doc, 0002.doc etc... there are some hundreds files.
I need to rewrite the names which are all different, so there is no matching pattern.