How to find and replace the below command?
Answers were Sorted based on User's Feedback
Answer / muralidharan
In a vi mode
:%s/searchword/replacaceword/g
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / 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 |
What is the nmap command?
How do you move or rename a file or directory?
Give Command that will move a single file called "unix.txt"
What are the unix commands?
what is tar command and what are the different types of tar commands?
Write a command to display a file’s contents in various formats?
how to remotely move a file ??? that mean how to move a file one machine to another machine ???
What is in grep command?
What does the “echo” command do?
what are processor execution levels and priorities?
What is time_t?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.