![]() |
|
|
|
|
|||||||
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ksh scripting help | praveenbvarrier | Shell Programming and Scripting | 1 | 04-15-2008 07:19 AM |
| sql scripting help | sam786 | Shell Programming and Scripting | 3 | 12-10-2007 08:31 AM |
| difference between AIX shell scripting and Unix shell scripting. | haroonec | Shell Programming and Scripting | 2 | 04-12-2006 05:12 AM |
| scripting guru's pls help me with scripting on AIX | thatiprashant | Shell Programming and Scripting | 1 | 01-20-2006 03:58 PM |
| Scripting? | woofie | What's on Your Mind? | 1 | 03-09-2005 03:03 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
HELP! I have to write a basic UNIX shell that will read in a file, and print out the number of words in the file. I need to create a system that will take a file and output information to standard out (the screen) about the number of words in a file. A word is defined as characters delineated by standard white spaces. I have to have a "driving" shell script named worfo and will use system commands and utilities. Also, my system has to do the following extra's:
Accept the option -n, meaning to use all non-alpha characters to delimit words Accept the option -u, meaning to only count unique words I am having problems starting out on how to do this! Any advice and help is GREATLY appreciated! |
| Forum Sponsor | ||
|
|
|
|||
|
HELP! I have to write a basic UNIX shell that will read in a file, and print out the number of words in the file. I need to create a system that will take a file and output information to standard out (the screen) about the number of words in a file. A word is defined as characters delineated by standard white spaces. I have to have a "driving" shell script named worfo and will use system commands and utilities. Also, my system has to do the following extra's:
Accept the option -n, meaning to use all non-alpha characters to delimit words Accept the option -u, meaning to only count unique words I am having problems starting out on how to do this! Any advice and help is GREATLY appreciated! |
|
|||
|
This sounds like a mid-level college CS course assignment.
We don't give homework answers, but the the source code for 6494 different shells is at: http://freshmeat.net/browse/164/ |
|
||||
|
Please read our rules
note in particular: (4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly. (6) Do not post classroom or homework problems. I have combined your two threads. For posterity, the title of the other thread was "need help scripting!". It looks like you started the second one after admitting in the first thread that this was a class assignment. If this assignment is too difficult for you, then you need to discuss that with your instructor. |
||||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|