* Summary: vi command help
@ 2001-07-23 21:25 Kirkland, Mike # IHTUL
0 siblings, 0 replies; only message in thread
From: Kirkland, Mike # IHTUL @ 2001-07-23 21:25 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-23 21:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-23 21:25 Summary: vi command help Kirkland, Mike # IHTUL
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox