What command is used to replace the existing string with
some other?

Answer Posted / thangaraju

sed 's/existingstring/newstring/g' filename or Specfied
row means sed '1,10s/existingstring/newstring/g' filename

Is This Answer Correct ?    22 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between grep and find command in unix?

569


Which command will print your home directory on screen?

536


What is the use of find command in unix?

570


How can you see the command line history?

578


Explain command to view process running?

609






What is a command and examples?

571


What are filter commands in unix?

545


What is the command to compare two files in unix?

612


Explain how to use grep command to list find the records of a file containing 10 different strings?

583


What is the behavioural difference between cmp and diff commands?

664


What is command substitution?

615


What are grep patterns?

569


What is the use of awk command in unix?

565


What is the use of finger command?

585


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

945