Solved

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

Posted on 2008-06-22
2
192 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
2 Comments
 
LVL 9

Accepted Solution

by:
ghostdog74 earned 500 total points
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now