Right now I'm using ack
to list all the files in a directory which contain a string literal. This outputs not only normal files but also special files called packages or bundles which are actually directories on OS X. That is fine except I'm piping that to another command that is expecting only true files. How do I exclude the packages and bundles but still include the files which match my search term inside those packages and bundles?
$ ack --literal --files-with-matches 'SearchTerm'