home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / misc / 5013 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.3 KB

  1. Path: sparky!uunet!stanford.edu!unixhub!fnnews.fnal.gov!fnsony.fnal.gov!shah
  2. From: shah@fnsony.fnal.gov (Hemant Shah)
  3. Newsgroups: comp.unix.misc
  4. Subject: Re: embarrassing question about vi
  5. Date: 26 Jan 1993 18:14:35 GMT
  6. Organization: Fermi National Accelerator Laboratory, Batavia, IL
  7. Lines: 25
  8. Distribution: world
  9. Message-ID: <1k3v2bINNpf3@fnnews.fnal.gov>
  10. References: <26JAN199311442031@pvhep.pvamu.edu>
  11. Reply-To: shah@fnsony.fnal.gov
  12. NNTP-Posting-Host: fnsony.fnal.gov
  13.  
  14. In article <26JAN199311442031@pvhep.pvamu.edu>, devine@pvhep.pvamu.edu (WILLIAM CHARLES DEVINE, II) writes:
  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. |> thanx
  22. |> william c devine 
  23.  
  24. Try the following, vi the file and type:
  25.  
  26. :%s/;/!/g
  27.  
  28.  
  29. :-)
  30. -- 
  31. -------------------------------------------------------------------------------
  32. Hemant Shah                            | All the opinions expressed are my own
  33. Fermi National Accelerator Laboratory  | and does not necessarily reflect
  34. Systems Integration Group              | those of Fermilab.
  35. E-mail :shah@fnal.fnal.gov             |
  36.  Voice : (708) 840-8071                   | I haven't lost my mind
  37.    Fax : (708) 840-2783                | it's backed on tape somewhere.
  38. -------------------------------------------------------------------------------
  39.