home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!unixhub!fnnews.fnal.gov!fnsony.fnal.gov!shah
- From: shah@fnsony.fnal.gov (Hemant Shah)
- Newsgroups: comp.unix.misc
- Subject: Re: embarrassing question about vi
- Date: 26 Jan 1993 18:14:35 GMT
- Organization: Fermi National Accelerator Laboratory, Batavia, IL
- Lines: 25
- Distribution: world
- Message-ID: <1k3v2bINNpf3@fnnews.fnal.gov>
- References: <26JAN199311442031@pvhep.pvamu.edu>
- Reply-To: shah@fnsony.fnal.gov
- NNTP-Posting-Host: fnsony.fnal.gov
-
- 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, vi the file and type:
-
- :%s/;/!/g
-
-
- :-)
- --
- -------------------------------------------------------------------------------
- Hemant Shah | All the opinions expressed are my own
- Fermi National Accelerator Laboratory | and does not necessarily reflect
- Systems Integration Group | those of Fermilab.
- E-mail :shah@fnal.fnal.gov |
- Voice : (708) 840-8071 | I haven't lost my mind
- Fax : (708) 840-2783 | it's backed on tape somewhere.
- -------------------------------------------------------------------------------
-