Package: lintian Version: 1.23.8 Severity: wishlist perl -0ne '/.*\b(cat|sed|cp)\b(.*\\\n)*.*\/usr\/share\/doc\/.*/ && print "$&\n"' It would be nice to support variables, too: perl -0ne '/\b(\w+)=.*\/usr(\/share)?\/doc\/(?s:.*)\b(cp|cat|sed)\b.*\1/ && print "$&\n"'