need help scripting!
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!
|