Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
`! -name . -prune` being the standard equivalent of `-maxdepth 1 -mindepth 1`. Add `-type f` to avoid `grep` complaining on directories. Adding /dev/null to make sure the filename is always printed. No reason to use ; instead of + here.