Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Fletch (Chancellor)
on Mar 31, 2003 at 18:52 UTC ( #247027=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://247027]
help
Chatterbox?
[belg4mit]: Nothing wrong with perl -le 'print ":)" =~ /(?^u:^(\:|\:\))$) /'
[Lotus1]: belg4mit are you on a Linix server?
[belg4mit]: yes. the regular expression is generated in code from a text file. that s the regular expression that Perl blows up when it reaches it, but if I use it from the comman line it's fine
[belg4mit]: oh, wait, damn, different lne number
[choroba]: same Perl version?
[choroba]: oh, ok
[belg4mit]: I had \Q'd in one RE but not a subsequent one, doh
[talexb]: Programs writing programs. Neat stuff.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2017-04-25 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (460 votes). Check out past polls.