dhesi@bsu-cs.bsu.edu (Rahul Dhesi) (06/24/89)
In article <130@tridom.uucp> wht@tridom.uucp (Warren Tucker) writes: >This quickie collects the filenames produced by grep output >while passing the output oin to stdout. Was this supposed to compile? There is a statement unlink(tmpfile); but there is no variable called tmpfile defined anywhere. -- Rahul Dhesi <dhesi@bsu-cs.bsu.edu> UUCP: ...!{iuvax,pur-ee}!bsu-cs!dhesi
wht@tridom.uucp (Warren Tucker) (06/25/89)
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.