tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Kirkland, Mike # IHTUL" <mike.kirkland () ndchealth ! com>
To: tru64-unix-managers
Subject: Summary: vi command help
Date: Mon, 23 Jul 2001 21:25:54 +0000	[thread overview]
Message-ID: <102653652422024.tru64-unix-managers.marc@archive.invalid> (raw)

Thanks to alan@nabeth.cxo.dec.com and Bob Full and George Gallen, who
suggested these methods:

I'd use:

	%s/() \//

	For the combination of the two.  For just the ():

	%s/()/

	And for the /:

	%s/\//

and
...
Try using the substitute command as follows:

vi filename

:%s/()//g
:%s/\///g

Hope this helps...

...
why not use sed?=20
cat filename | sed s/\{//g | sed s/\}//g | sed s/\///g > newfilename=20



The original question:

I have some files that I want to remove special characters with using =
the ex
commands in vi.

Below is an example of a file; I have tried several combos and have not =
hit
on the correct one yet, and thoughts??

One to remove the ( ) in all the lines. two to remove the / in all the
lines.

number one () /
alone () /
this file. () /
that file



Mike Kirkland
Unix System Administrator
National Data Corporation
Phone:  (918) 481-2817
Fax:      (918) 481-4275
mike.kirkland@ndchealth.com <mailto:mike.kirkland@ndchealth.com>
NDC=AE| HEALTH
6100 South Yale Avenue
Suite 1900
Tulsa, OK 74136

                 reply	other threads:[~2001-07-23 21:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox