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.
Hello all, I have a small question.. For my uni project, i have this question. I don't want anyone to tell me how to do it (yet.. hehe j/k). I just want a small guide on what to use, and what shell programming language to use, etc... ill explain in more detail below the question.
Design, write, implement and test a Unix shell program to analyse a file that contains a piece of text, providing the user with the following statistics according to the user's choice:-
1- count of lines, words and characters
2- specific letter count (eg. how many 'e's)
3- specific word count (eg. how many 'and's)
4- sentence count
5- list of proper names appearing in the text
+ any other feathres that you consider useful.
Also, the completed system should include the following editing features:-
6- Change to a different text file
7- add extra lines to the text file
8- amend the text (eg. replace words)
9- list the text
10- exit system
The system should be menu-driven, initially prompting the user for the name of the text file, then offering a number of menu options, from which the user chooses. The apporpriate anaysis/edit is done, results displayed, and then the option list is presented again and again untill the user chooses to exit the system.
Remember, good programing style is required, using command procedures appropriately, comments, user friendly interface, etc..
After reading around, including this book i have "Linux Programming - A beginner's Guide' i found out that there are many scripting languages there; Bash, Tcsh, Gawk, Perl, TCL, TK, and so on..
My question is, which language (or languages) are best for my project? Do any of you have any tipps on how i should approach this, how i should sectionise it, how to start? etc..?
I have programmed in C, C++, and Java before (well.. a bit of batch programming in dos yeeears ago), but nothing related to *nix shell scripting.. But i'm prepared to, and have the time to read and study on what language(s) i must use.
And if anyone has any websites that are related to this, or contain good tutorials on anything that may help me, i'd appreciate it alot.
Distribution: Red Hat, openBSD,Mandrake,freeBSD,SunOS
I would suggest Perl....maybe just because I know it the best, but when I want to automate somthing that I can run from the command line I use perl. One reason is that it is easy to use and you can also use run bash command line commands from within perl. Plus since you have time to learn the language, it would be great excuse to learn perl which you can use to solve many other problems. It is great for web programming and it is similar to both PHP and bash, at least I found, that way you can make an easy transition into those other two languages...if you wanted to.