home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.misc
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!att-out!cbfsb!cbnews!cbnewsm!corey
- From: corey@cbnewsm.cb.att.com (william.c.brown)
- Subject: Re: embarrassing question about vi
- Organization: AT&T
- Distribution: usa
- Date: Wed, 27 Jan 1993 12:48:56 GMT
- Message-ID: <1993Jan27.124856.20331@cbnewsm.cb.att.com>
- Summary: try tr
- References: <26JAN199311442031@pvhep.pvamu.edu>
- Lines: 19
-
- In article <26JAN199311442031@pvhep.pvamu.edu>, devine@pvhep.pvamu.edu (WILLIAM CHARLES DEVINE, II) writes:
- > Hi!
- >
- > How can i have vi or sed go thorugh a file and replace every
- > semicolon with a exclamation point?
- > I can't seem to get it to work.
- >
- > thanx
- > william c devine
-
- Try the following:
-
- cat [file] |tr ":" "!" > [newfile]
-
-
-
- --Corey
-
-
-