Hi,
i have a little problem here.
I've written a little shell script which gets the path to some files out of a file list.txt and there is another file key.txt with keywords which should be looked for in the files of list.txt.
That works fine, but in some of the files of list.txt there a lines like:
ads'asdf asdfasdf 'asdf 'Asdf 'asdf 'this'Adadf
and if the keyword this was used grepping that file, it surely will be found in that file.
The problem is, that this is in ' ' and doenst count in this case...
I could solve that problem by counting ' in that line, and if ' appears 2, 4, 6 ... times before this, it counts and if ' appears 3, 5, 7 .. times infront of this, this will be in ' ' and doesnt count!
How can I do that?