bash script

view full story

http://www.unix.com – I have 4 files file1,file2,file3,file4.I have to read each word from file1 and return the count of it in all the 3 remaining files as a whole.How to do dat?? eg: file1 this is a cat file2 this is a mat file3 this is a rat file4 cat mat rat Output: this:2 is:2 a:2 cat:1 (HowTos)