|
All my code above does is take a list of files that you want to run your count.sh script on and runs through that list line by line, executing your script on the file that is listed on that line.
Now if you wanted to generate a word count file per entry... (I'm not sure why you would want to do this when you could just append the count to a single file)... you could do this (depending on the output of your count.sh).
Replace this line:
./count.sh $i
with:
./count.sh $i > filename
__________________
http://jasonpowers.net
"There are a thousand hacking at the branches of evil to one who is striking at the root."
|