Hi Team!!
Please can anyone tell me why the following line does not work properly?
str3+=$str2
it seems that str3 variable does not keep its value in order to be concatenated in the next iteration! Thus when i print the result of the line above it returns the str2 value
What i want to do is to add to the existing value of str3 the str2 value (after some trimming).
For example,
if the str2 value has the following values through the iteration
Thanks for your reply but this will not help me since that what i want to do is "add" the lines of the str2 to form a single line for str3.
My problem is to create a line of 0 and 1 that describe the words found from the comparison of two files.
I have tried all of them!!! My problem is that when the program returns to for for the next iteration str3 loses its contents!!! ...and equals again to str2
One solution that came to my mind was to initialize a string variable with zeros end when ever i have a match to go to the zeros variable and at the ith position to put a 1.
My question is how to go to a specific index into the string and change the value to 1.
Thanks