Answer Posted / pavithra
Using sed command:
sed 's/searchword/replaceword/g' filename --[It finds the
word in file and replaces and displays in the command line]
sed -i '/s/searchword/replaceword/g' filename -- [It edits
the file, finds and replaces the word and saves it and next
time when u open the file it displays the file with replaced
word]
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Which unix command lists files/folders in alphabetical order?
Name the general commands in using unix os for a beginner?
How do I search a whole word in vim?
What do chown command do?
Why is it called a shebang?
How to display no of records in oracle using unix command?
Why is grep called grep?
What is a command and examples?
Why is awk called awk?
Enlist some filename manipulation commands in unix.
What is the difference between awk and grep?
What's a command word?
What is unix command line?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How can we use grep command in unix?