Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Find file that contains "....." (command in Unix)

by Abigail-II (Bishop)
on Mar 28, 2003 at 10:20 UTC ( #246443=note: print w/ replies, xml ) Need Help??


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

The -r option on grep is not uniformely supported. It's not in the POSIX standard. The question was about a Unix command; and GNU stands for "GNU is Not Unix". ;-)

Abigail


Comment on Re: Find file that contains "....." (command in Unix)
Re: Re: Find file that contains "....." (command in Unix)
by Fletch (Chancellor) on Mar 28, 2003 at 15:46 UTC

    And if you're going to depend on non-standard grep options why not just depend on using zsh and use grep '\.\.\.\.\.' ./**/*.txt to let the shell do the find for you.

    (Aside: zsh rules.)

      Except that you run into trouble if you have to pass more files than will fit on a command line in your system.

      Makeshifts last the longest.

        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 . . .).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://246443]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-10-22 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls