Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by GrandFather (Cardinal)
on Jan 29, 2007 at 09:59 UTC ( #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
Node Status?
node history
Node Type: note [id://597054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-09-19 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (133 votes), past polls