The command-line is the interactive interface to your shell.

learn more… | top users | synonyms (1)

14
votes
2answers
10k views
+100

Filtering invalid utf8

I have a text file in an unknown or mixed encoding. I want to see the lines that contain a byte sequence that is not valid UTF-8 (by piping the text file into some program). Equivalently, I want to ...