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

How does the system know where one command ends and another begins?

1578


What does 'mkdir' command do in UNIX?

660


What are bash commands?

595


What's a command word?

591


What does the md command do?

572






Are you in or at the office?

611


What does the metacharacter mean?

610


What command is used to check the current users?

594


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

799


What is the command to compare two files in unix?

622


Why is awk called awk?

577


Write a command to display a file’s contents in various formats?

625


Give the command for finding the current date.

583


Which command is used to copy files?

556


what is the advaantage of each user having its own copy of the shell?

2036