Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

Re: Boolean Grep?


Article: 7774 of alt.hackers
From: tdavis@news.gate.net (Thomas Davis)
Newsgroups: alt.hackers
Subject: Re: Boolean Grep?
Date: 7 May 1995 12:30:33 -0400
Organization: CyberGate, Inc.  Florida
Lines: 19
Approved: Duh?
Message-ID: 3oisj9$vp1@hopi.gate.net
NNTP-Posting-Host: hopi.gate.net
Status: RO

ObHack:

How about this... it doesn't use Perl ;-)

#!/bin/csh
set value = `grep $argv[1] $argv[2]`;
if( $#value > 0 ) then
  echo "True"
else
  echo "False"


  ************   ********   *******
      ***       ***        ***   ***    Thomas E. Davis (tdavis@gate.net)
     ***       ******     ***   ***
    ***       ***        ***   ***    http://otto.cmr.fsu.edu:8000/~davis_t
   ***       ********   ********




Child Child Child Child

Back to index