Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by Anonymous Monk
on Oct 30, 2018 at 00:42 UTC ( #1224896=note: print w/replies, xml ) Need Help??


in reply to Re: search for a pattern in file without opening the file
in thread search for a pattern in file without opening the file

If the grep finds a match it returns 0 or 1?
  • Comment on Re^2: search for a pattern in file without opening the file

Replies are listed 'Best First'.
Re^3: search for a pattern in file without opening the file
by hippo (Bishop) on Oct 30, 2018 at 09:04 UTC

    Yes, as explained in the Exit Status section of the man page.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2022-12-05 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?