I have a long-running python script that failed to utf-8 decode a file. The error message doesn't tell me what file it failed on, only that it couldn't decode byte
0x81 in position
194. I know which folder the file is in, but not where among the thousands of files somewhere in that subtree. What are my options for finding this file (and others like it)? Is there a pretty one-liner in bash for this?
Changing the script to print what it's looking at and rerunning it, fixing one file at a time, is barely an option, as running the script once takes many hours. Writing a directory traverser in Python seems like a bit too much work.