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 search command in unix?
Why is it called grep?
How to setup sudo, only can use for particular date & time only ( for solaris10 )
what is the use of "grep" command?
What is a Unix signal, and how do you handle them?
Explain mount and unmount command.
Briefly, how do you install Oracle software on UNIX.
What command a user use to view a long text file one page at a time in UNIX?
What does this command do? Cat food 1 > kitty
How to convert a hidden file to normal visible file?
How we will execute previous command in vi editor?
What is the difference between pipe (|) and tee command in unix