Subject: Re: "fprintf(stdout, ..." in sysctl(8).
To: None <tech-userlevel@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: tech-userlevel
Date: 05/27/2000 06:42:44
Simon Burge <simonb@netbsd.org> typed:
:No harder than s/printf(/fprintf(outfp)/, or even "foo > outfile" :-)

% echo 'sprintf(foo, "blah");' | sed 's/printf(/fprintf(outfp)/'
sfprintf(outfp)foo, "blah");
% echo 'fprintf(stderr, "blah");' | sed 's/printf(/fprintf(outfp)/'
ffprintf(outfp)stderr, "blah");

Besides the typo in your substitution, maybe a bit harder :-)

Regards,
-- 
Geoff Wing : <gcw@pobox.com>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@zsh.org>       Phone   : (Australia) 0413 431 874