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

  1. Newsgroups: comp.unix.misc
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att-out!cbfsb!cbnews!cbnewsm!corey
  3. From: corey@cbnewsm.cb.att.com (william.c.brown)
  4. Subject: Re: embarrassing question about vi
  5. Organization: AT&T
  6. Distribution: usa
  7. Date: Wed, 27 Jan 1993 12:48:56 GMT
  8. Message-ID: <1993Jan27.124856.20331@cbnewsm.cb.att.com>
  9. Summary: try tr
  10. References: <26JAN199311442031@pvhep.pvamu.edu>
  11. Lines: 19
  12.  
  13. In article <26JAN199311442031@pvhep.pvamu.edu>, devine@pvhep.pvamu.edu (WILLIAM CHARLES DEVINE, II) writes:
  14. > Hi!
  15. >    How can i have vi or sed go thorugh a file and replace every
  16. > semicolon with a exclamation point?
  17. > I can't seem to get it to work.
  18. > thanx
  19. > william c devine 
  20.  
  21.     Try the following:
  22.  
  23.     cat [file] |tr ":" "!" > [newfile]
  24.  
  25.     
  26.  
  27.     --Corey
  28.  
  29.  
  30.