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 does the command ' $who | sort –logfile > newfile' do?
What is in grep command?
What does this command do? Cat food 1 > kitty
How do I use grep to find a file?
What does 'mkdir' command do in UNIX?
What are awk commands?
How can we use grep command in unix?
Which unix command to make a new directory?
Name the unix command to find how many days the server has been up.
What is command substitution?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
Name the various commands that are used for the user information in unix.
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
What will the following command do?
Explain command to display different lines that are found when compare two files?