I have been having an encoding problem that I need to solve.
I have an 4-column tab-separated file: I need to remove all of the lines that contain the string 'vis-�-vis'
achiever-n vis-�-vis+ns-j+vp oppose-v 1
achiever-n vis-�-vis+ns-the+vg assess-v 1
administrator-n vis-�-vis+n-the+n position-n 1
adobe-n vis-�-vis+n-a-j+n-a-j ad-n 1
In this way, if my file contains 4 lines that contain 'vis-�-vis' they will all be filterd.
How can I do this with a one liner grep?
---------- Post updated at 01:18 PM ---------- Previous update was at 01:09 PM ----------
or I need something that removes all non-ascii characters..
or that does the opposite of this grep
grep --color='auto' -P -n '[^\x00-\x7F]' file
I have tried
grep --color='auto' -P -n '![^\x00-\x7F]' file
with no success