Solved

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

Posted on 2008-06-22
2
194 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
llcommand 6 87
unix scripting question 1 89
Bad Block Relocation for Synchronous GLVM AIX 7.1 2 66
How to calculate the current use of PVU on my TSM server. 4 61
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 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

15 Experts available now in Live!

Get 1:1 Help Now