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
What is command statement?
What's a command word?
What are some command words?
What is {} in find command?
Which command will print your home directory on screen?
Who command in unix operating system?
What is the function of grep command in unix?
What is rmdir command?
What does awk stand for?
What is the command to view process running?
What is the difference between cat and more command?
How do I use grep to search for a file?
How many unix commands are there?
What does touch command do in unix?
Which unix command lists files/folders in alphabetical order?