|
repeating a command in ssh
Hi!
I'm rather new to the whole programming thing. I'm working on a assignment for an information retrieval course. I need to make a word by document matrix, in order to do this I need to count the occurence of each word in files. Now I've written the code to do all this, but the problem is I have to count over more than 3000 files. Can anybody if it is for instance possible to execute this command on all the files in a directory? For one file I use the command $ sh count.sh file-i-want-to-count > counting. count.sh is the code for counting the word occurences, file-i-want-to-count is one of the file I want to count the words of and counting would be the file where the output will be saved. Please help me, 3000 files is way too much to do by hand...
|