I have a file exported from some system, and in vi when I open the file, there's a green <92>
in it when I open it up where an '
ought to be.
It messed up my bash script and left a line that reads Binary file (standard input) matches
after I grep'd
it.
When I run file
against it, it says the file is encoded as Non-ISO extended-ASCII text, with CRLF line terminators
What is that green <92>
and why is it binary and messing up grep?
ga
command in vim (or the text-filterxxd
from your shell) to get a good look at the actual data in the file, then decide what encoding is appropriate, or what happened.<C-v>u
followed by the unicode number that you got fromga