Hi am working on a project where I should test two files. if there are some words exactly the same the script should report that.
The documents are normal text documents (or later word documents). I have a for loop to put the words into an array, so I could test two words after I have put the documents into the array. My for loop looks like this:
for line in `cat $file1 | tr ' ' '\n'`; do
I use this twice, so I should have two arrays. but the problem is that the array is empty after the loop. and when I echo line1[$counter] I see 
Could you tell me what I am doing wrong? I am staring to this problem to long (only one hour) but I can't find a sollution