ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Policy on these forums is not to do homework for people.
If you take a stab at it and have difficulties, you can ask some specific questions about what you are doing. But, you shouldn't expect to just describe your homework problem and have someone hand you a script.
I am not trying to get them to do my homework I relly just need help with how to get a while loop to read a file. If I can get some help with that I can do the rest of it np. I am just getting stack on how to read a file in to the loop.
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.
Above is our canned response---the key in your case is to tell us which books and reference material you have used, and to show us what you have tried.
For example, do you know how to make a perpetual loop that simply prints the word "hello"?
Next, are you familiar with the "read" command?----and have you studied redirection?
I think you'll find that most people here feel that if it quacks like a homework question and it waddles like a homework question, its a homework question, unless you get a very convincing explanation.
the key in your case is to tell us which books and reference material you have used, and to show us what you have tried.
...and, if i can make a suggestion, a bit more of a hint about any restrictions on programming or scripting language is to be used, could be helpful.
Originally Posted by sinderone
We need to do this with a while loop. Can someone help me with the coding for it?
Whether this is an answer, or not, a resource that you might like is here.