|Ned Batchelder : Blog | Code | Text | Site|
Finding stale pyc files
» Home : Blog : October 2013
Recently I was debugging one of those "it can't happen" kinds of problems, and wanted to make sure I didn't have any stale .pyc files lying around. I figured the "find" command could find pairs of files whose dates compared incorrectly, but I didn't know how to do it.
I asked in the #bash IRC channel, and they gave me this:
It's one of those Unix-isms I wont be able to remember (yet?), so I'll leave it here to find again when I need it later.
Notice I've added a bashtag to it so I can search for it in my command history. (I wish I had come up that name!).
I'm sure there are other ways to find stale files, maybe even better ones?