I know grep -F can search for literal strings, but I want to do something likewhile read word; do  grep -F ^$word$ FILE;done < wordlisti.e. the words need to be treated literally, at the same time, ^ and $ conditions need to be satisfied.How to do this?
Literally grep the only word in a line
grep
Use the -x option:grep -x -F word file-x will consider only input lines that use all characters in the line ... to match an entire fixed string.