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.
Does this mean this is on a test you are taking, or homework? If so, no one will help you. You can ask for general advise, but we will not do homework or take tests for you, plain and simple.
As far as your question, what are you trying to perform recursively?
You'll have to keep leap years in account, but all in all, you need a loop to do this, I fully concur with colucix. Also, your program must have a) execute rights and b) write permission to the folder in question.
If it is only january, the thing is simple (I'm at a loss to the purpose: a calendar with ONLY january, but, this is not my homework) you need two nested loops.
Hmm, do I smell the faint oudor of ... homework?
I have to concur with corp769 though, please dont let US do YOUR homework. Homework has been wrongly translated from the "ancient texts" where it meant "an opportunity to learn and grow"...
Good luck
Thor
Last edited by ButterflyMelissa; 03-12-2011 at 02:30 AM.
i got it as soon as i post it, thank you guys haha im excited with linux , i mean i'm in love with linux hehe but i knew it my question was a bit weird cause im a newbie.
Last edited by coldfire007; 03-12-2011 at 11:36 PM.
Uh. I think that's a misunderstanding? No need to.
Thanks, you brightened my day I felt I had to apologise for assuming I was helping someone out with his homework while he was simply asking for a helping hand...case of jumping tru the wrong loop of my part, I thought.
NP. Contrary to what some members have come to believe (who might have forgotten they once were new Linux users too) is that LQ is a knowledge base for all things Linux. Anyone asking a question, as long as it does not violate any LQ Rules, deserves a reply or answer that contains more than solely "go google for it", "use distribution version X" or "here's a catb link on how to ask questions".
After all we're Linuxquestions.org: you've got the question, we've got the answer.
well for the answer i did it my way, it was the same i've montioned on the begining i wasn't sure but it still fine # cat | cal 01 2001 > year01.txt ; cat | cal 01 2002 > year02.txt ; ........ 'till: cat | cal 01 2005 > year05.txt [and it wasn't home work ] and for "loop" command i didn't study it yet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.