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 is shell and terminal?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
How do you know which shell I am using?
What happens on a system call?
Is bash a shell script?
Is powershell a bash?
How will you connect to a database server from linux?
What is a batch file used for?
What is eval in shell script?
Is cmd a shell?
How do you find out What is your shell?
How do I run a shell script in powershell?
What are the different commands available to check the disk usage?
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.
madhar chod unix ke 10 commands dhang se likh nahi sakta hai