Escaping slash "\" in grep

Viewed 13618

I have file with line:

"H:\Check\WP_20140511_029.mp4"

along with other lines. I want to remove such lines indicating directory at H:\Check. I tried

grep -v ".*H:\\Check.*" testout.txt > testout2.txt

But it did not delete those lines. Whats wrong with my regex .*H:\\Check.*. regex101 shows that my regex correctly matches the line.

2 Answers
Related