Hi,
I want to get rid of the " " in a file. I vi the file and use
"g/ /s///g" and it doesn't work. I have tried putting in "\" before the
special character but it still doesn't work. Anybody know how to solve
this?
Regards,
Lai
Hi,
I want to get rid of the " " in a file. I vi the file and use
"g/ /s///g" and it doesn't work. I have tried putting in "\" before the
special character but it still doesn't work. Anybody know how to solve
this?
Regards,
Lai
You are substuting nothing for nothing every time you find an occuranceQuote:>I want to get rid of the "^]" in a file. I vi the file and use
>"g/^]/s///g" and it doesn't work. I have tried putting in "\" before the
>special character but it still doesn't work. Anybody know how to solve
>this?
:%s/^]//g
--
Totten, William David (Bill) Computer and Information Science Major
http://pobox.com/~totten/ Friends don't let friends use emacs
in vi-editor to get rid of all those escape (^[) characters you
mentioned I would do the following, invoke vi editor and load the file
into it then
:s/^[//g <ENTER>
to get that ^[ I type CNTRl-V [
hope that will work for you
--Quote:> Hi,
> I want to get rid of the " " in a file. I vi the file and use
> "g/ /s///g" and it doesn't work. I have tried putting in "\" before the
> special character but it still doesn't work. Anybody know how to solve
> this?
> Regards,
> Lai
-srinu-
1. Subject: Ksh93 question: special built-ins: why are they special?
Why are the KornShell special built-in commands special?
I understand how they're treated differently, but why?
Historical reasons? Because they have side effects?
TIA,
Mike
--
Mike Woinoski Pine Needle Consulting
2. CUSTOM DRIVERS AVAIL. FOR UNIX,WONDERWARE,FIX,REAL-TIME & INDUST.APPS.
3. How Do I replace special characters with sed
4. deleting some empty lines with sed
5. OpenWindows 2.4 can not use special characters in Find/Replace
7. Sed: special character replacing
9. using sed to replace a special character
10. SED: How to replace with special characters?
11. how to replace a special character with vim on the command line
12. replace special character with sed
13. vi : replacing special characters