home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / misc / 5017 < prev    next >
Encoding:
Text File  |  1993-01-28  |  982 b   |  35 lines

  1. Newsgroups: comp.unix.misc
  2. Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!univ-lille1.fr!univ-lyon1.fr!scsing.switch.ch!
  3.  news.univie.ac.at!paladin.american.edu!howland.reston.ans.net!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jrpg8255
  4. From: jrpg8255@uxa.cso.uiuc.edu (Jeremy Payne )
  5. Subject: Re: embarrassing question about vi
  6. References: <26JAN199311442031@pvhep.pvamu.edu>
  7. Message-ID: <C1H3Bz.EEE@news.cso.uiuc.edu>
  8. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  9. Organization: University of Illinois at Urbana
  10. Date: Tue, 26 Jan 1993 17:59:58 GMT
  11. Lines: 22
  12.  
  13. devine@pvhep.pvamu.edu (WILLIAM CHARLES DEVINE, II) writes:
  14.  
  15. >Hi!
  16.  
  17. >   How can i have vi or sed go thorugh a file and replace every
  18. >semicolon with a exclamation point?
  19. >I can't seem to get it to work.
  20.  
  21.  
  22. Try:
  23.  
  24. :%s/;/?/g
  25.  
  26.  
  27.  
  28. ---------------------------
  29. Jeremy Payne
  30. UIUC Neuroscience program /
  31. College of Medicine
  32. jrpayne@uiuc.edu
  33. (217)244-4478
  34. ---------------------------
  35.