I have a .txt file with game names in it. Some have [,],etc characters, thats why I use -F in grep.I ONLY want a result higher than 0 if the string matches EXACTLY a column in the text file. But when I try it with -x there is NO match. And without -x there is the problem that it even give higher than 0 back, if only few words match the line.Example:mylist.txt:Command & Conquer - Alarmstufe Rot - Gegenschlag (G) (Disk 1) (DieAlliierten)Command & Conquer - Alarmstufe Rot - Gegenschlag (G)(Disk 2) (Die Sowjets)...shell command that is use (with -x):grep -Fxwco Command & Conquer - Alarmstufe Rot - Gegenschlag (G) (Disk 1) (Die Alliierten) mylist.txtgives me back: 0shell command that is use (without -x):grep -Fwco Command & Conquer - Alarmstufe Rot mylist.txtgives me back: 2
Get amount of exactly matched Columns in a File in Shell
grep