🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #83

Re: cgname - collect file names from {e,f,}grep output

#83
From: Warren Tucker
Date: Sun, 25 Jun 1989 01:55
19 lines
1236 bytes
This really belongs in alt.sources.d, but, considering the
last few days ... :-(

In article <7909@bsu-cs.bsu.edu>, dhesi@bsu-cs.bsu.edu (Rahul Dhesi) writes:
> Was this supposed to compile?  There is a statement
> 	  unlink(tmpfile);
> but there is no variable called tmpfile defined anywhere.

whoops 1:  my stdio.h declares the tmpfile() function.  Thus the
compiler did not find the bug.

whoops 2:  little did I know:  fgrep -l <str> <file-list>
does the same job much more nicely.  Thanks for the info
from rsalz and mannnnnnnnnny others.
-- 
-------------------------------------------------------------------
Warren Tucker, Tridom Corporation       ...!gatech!emory!tridom!wht 
Sforzando (It., sfohr-tsahn'-doh).  A direction to perform the tone
or chord with special stress, or marked and sudden emphasis.
Technical Details
Message-ID: <131@tridom.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!rutgers!gatech!emory!dtscp1!tridom!wht
References: <130@tridom.uucp> <7909@bsu-cs.bsu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!rutgers!gatech!emory!dtscp1!tridom!wht
From: wht@tridom.uucp (Warren Tucker)
Newsgroups: comp.sources.d
Subject: Re: cgname - collect file names from {e,f,}grep output
Summary: whoops * 2
Message-ID: <131@tridom.uucp>
Date: 25 Jun 89 01:55:27 GMT
References: <130@tridom.uucp> <7909@bsu-cs.bsu.edu>
Organization: Tridom Corporation, Atlanta
Lines: 19