From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653652422024.tru64-unix-managers.marc@archive.invalid> From: "Kirkland, Mike # IHTUL" Date: Mon, 23 Jul 2001 21:25:54 +0000 To: tru64-unix-managers Subject: Summary: vi command help X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653652422024 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 NDC=AE| HEALTH 6100 South Yale Avenue Suite 1900 Tulsa, OK 74136