I am removing stop words from a text, roughly using this code
I have the following
$ cat file file types extensions $ cat stopwords i file types
grep -vwFf stopwords file
I am expecting the result:
but I get the ( I think incorrect)
It is as if the word
file has been skipped in the stopwords file.
Now here's the cool bit: if I modify the stopwords file, by changing the single word/letter
i on the first line, to any other ascii letter apart from
e, then the same grep command gives me a different and correct result of
What is going on here and how do I fix it?
I'm using grep (BSD grep) 2.5.1-FreeBSD on a Mac OSX GNU bash, version 4.4.12(1)