Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by blakem (Monsignor)
on Mar 28, 2003 at 10:02 UTC ( #246441=note: print w/ replies, xml ) Need Help??


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

None of the solutions posted so far are exactly what I would do... How about a simple:

grep -lr yourstring /path/to/your/dir

-Blake


Comment on Re: Find file that contains "....." (command in Unix)
Download Code
Replies are listed 'Best First'.
Re: Find file that contains "....." (command in Unix)
by Abigail-II (Bishop) on Mar 28, 2003 at 10:20 UTC
    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

      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.

Re^2: Find file that contains "....." (command in Unix)
by Anonymous Monk on Aug 30, 2012 at 12:10 UTC
    Thanks....

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2015-07-08 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls