There's a merged pull request on the void-packages repository hooks/pre-pkg/03-rewrite-python-shebang.sh: use grep -r instead of find. https://github.com/void-linux/void-packages/pull/28276 Description: This saves us one sed execution per file in the destdir, resulting in a major speedup. Grep will only consider text files and only look at the first line.