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 language is used in terminal?
How do I run a .sh file?
What is a beat in a script?
What is the difference between bash and shell?
How to print all the arguments provided to the script?
What is the conditional statement in shell scripting?
What does the sh command do?
What is path variable bash?
How do I run a shell script in powershell?
What is shell scripting used for?
What are the 3 standard streams in linux?
Explain about login shell?
Explain about the slow execution speed of shells?
What is batch file programming?
Write a script to print the first 10 elements of fibonacci series.