Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Apr 11th, 2005, 3:05 PM   #1
day1010110
Newbie
 
Join Date: Mar 2005
Posts: 4
Rep Power: 0 day1010110 is on a distinguished road
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...
day1010110 is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:49 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC