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 does a process mean?
what is the functionality of kernel in unix architecture?
What are grep patterns?
What is .sh file?
distinguish between physical addresses and logical address?
How can we use grep command in unix?
What is the difference between AWK and SED commands? Plz give example and explain...
How many unix commands are there?
Which command should you use to find the remaining disk space in unix server?
what is kernel?
what will this do $cat > file.c ?(file.c is a file in current directory)
What is the difference between grep and grep?