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
Write a script to print the first 10 elements of fibonacci series.
What is the difference between bash and shell?
How to get the first line from a file using just the terminal?
shell script for reverse the string
Why is it called a shell?
What language is used in terminal?
How to redirect both standard output and standard error to the same location?
How do I open a jshell in cmd?
What is shell environment?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
Which is better perl or shell scripting?
How do you find out What is your shell?
What is shell company all about?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
what is tickets $ what low,medium,high priorite pls define time also