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
Why is it called grep?
What is grep short for?
How do I use nslookup?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What is the use of tee command?
What difference between cmp and diff commands?
What command is used to check the current users?
What is time_t?
Why is grep called grep?
What does grep v grep do?
Describe the usage and functionality of the command rm –r * in unix?
What is unix command?
What are bash commands?
What is used to type command?
Which command is used to create a directory?