Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: search for a pattern in file without opening the file

by GrandFather (Saint)
on Jan 29, 2007 at 09:59 UTC ( [id://597054]=note: print w/replies, xml ) Need Help??


in reply to search for a pattern in file without opening the file

That is rather similar to the problem I have with a sealed black box. I want to know what is in it, but I'm not allowed to open it. I do know the address information on the outside of the box and how large it is - stuff like that, but I've no idea what is inside it. Perhaps if you solve your problem (using a clairvoyant perhaps?) you could tell me how you did it and I can use the same technique for my problem?

Actually, solve that problem and we can sell the solution to kids who want to find out what is in their birthday presents!

In the mean time you may be interested in reading Perl's grep documentation. It is not a *nix grep (which does "open the files" btw).


DWIM is Perl's answer to Gödel
  • Comment on Re: search for a pattern in file without opening the file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-26 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found