View Single Post
Old Apr 12th, 2005, 8:10 AM   #4
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote