http://www.perlmonks.org?node_id=247027


in reply to Re^3: Find file that contains "....." (command in Unix)
in thread Find file that contains "....." (command in Unix)

No trouble at all, just a slightly different incantation.

print -l ./**/*.txt | xargs grep '\.\.\.\.'

(well, no trouble except that if your filenames may have spaces in them you'll need to use `-N' rather than `-l' and a GNUish xargs --null, but I digress . . .).

Replies are listed 'Best First'.
Re^5: Find file that contains "....." (command in Unix)
by Aristotle (Chancellor) on Mar 31, 2003 at 21:04 UTC
    And then we're back full circle.
    find . -name '*.txt' | xargs grep '\.\.\.\.'
    And if you have a GNUish xargs, chances are you have a GNUish grep that understands -r..

    Makeshifts last the longest.