Solved

:%s/into//*+ append */ into/g  not functioning in vi

Posted on 2008-06-22
2
201 Views
Last Modified: 2013-12-27
In vi editor I want to substitute the word into to this:

/*+ append */ into

because the way to do it involves a slash, it is not funcitoning, how to do it?

:%s/into//*+ append */ into/g
0
Comment
Question by:LindaC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
ghostdog74 earned 500 total points
ID: 21843071
you escape the slash, so if you want to change / to "o" for example, you do  /\\/o/g
0
 
LVL 8

Author Comment

by:LindaC
ID: 21843116
In fact I found the solution which is:

:%s;into;/*+ append */ into;g

But thank you, I will test this later because now is too late.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question