Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: I need "Antigrep"

by tphyahoo (Vicar)
on Aug 15, 2006 at 18:06 UTC ( #567518=note: print w/ replies, xml ) Need Help??


in reply to Re: I need "Antigrep"
in thread I need "Antigrep"

Unfortunately doesn't work.

hartman@ds0207:~/filesContainingArena> find | xargs hartman@ds0207:~/f +ilesContainingArena> find | xargs ./antigrep.pl c . ./a ./b ./c
Maybe I can use that as a starting point though, so....

UPDATE: Thanks for the update, Ikegami :)


Comment on Re^2: I need "Antigrep"
Download Code
Re^3: I need "Antigrep"
by ikegami (Pope) on Aug 15, 2006 at 18:12 UTC

    Fixed. $fh was going out of scope prematurely when I used

    if (!open(my $fh, '<', $filename)) { warn("Unable to open $filename: $!\n"); next; }

    I'm not sure how xargs works, but I tested it using antigrep.pl c *

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://567518]
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: (8)
As of 2015-07-06 22:42 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 (84 votes), past polls