How would you replace the n character in a file with some
xyz?
Answer Posted / ram
* sed 's/n/xyz/g' filename > new_filename
s -search and replace
n -character to be replaced
xyz - character to replace
g -global
* vi filename
:%s/n/xyz/g --search and replace
:w! ---save
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What are the 3 standard streams in linux?
What does egrep mean?
How to use arguments in a script?
Explain how you Automate your application using Shell scripting.
Explain about the exit command?
What is the command to find out users on the system?
What is @echo off?
What is ms powershell?
What is the difference between bash and shell?
How do I open a jshell in cmd?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What are the different communication commands available in the shell?
How to print all array elements and their respective indexes?
How will you connect to a database server from linux?
What is an sh file?