home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / editors / 1980 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.2 KB  |  33 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!haven.umd.edu!darwin.sura.net!jvnc.net!princeton!phoenix.Princeton.EDU!mgflax
  3. From: mgflax@phoenix.Princeton.EDU (Marshall G. Flax)
  4. Subject: Re: Counter in VI?
  5. Message-ID: <1992Aug13.170213.13487@Princeton.EDU>
  6. Sender: news@Princeton.EDU (USENET News System)
  7. Nntp-Posting-Host: phoenix.princeton.edu
  8. Organization: Princeton University
  9. References: <1623@applix.com>
  10. Date: Thu, 13 Aug 1992 17:02:13 GMT
  11. Lines: 20
  12.  
  13. In article <1623@applix.com> jimr@applix.com (Jim Rouleau [ext 256]) writes:
  14. >What I'd like to do is take something like this:
  15. >
  16. >  #define z 26
  17. >  to become
  18. >  #define z 25
  19.  
  20. Pipe the relevant lines through awk!  (Although, if you're really only
  21. concerned with changing #defines, compilers will generate exactly the
  22. same code given
  23.     #define z (26-1)
  24. as if they received
  25.     #define z 25
  26. and the addition of the parenthesis et.al. can clearly be done within vi.)
  27.  
  28. marshall
  29. -- 
  30. ------- (c) 1992, Marshall Gene Flax <mgflax@phoenix.Princeton.EDU> -------
  31. ----------- 5 Joyce Lane, Woodbury, NY 11797, 516-364-9331,9379  ----------
  32. - c/o Jack Gelfand,Psychology Dept,Princeton U.,NJ 08544,609-258-6739 (w) -
  33.