Delete comment from: Javarevisited
What is the best way to find and replace from large files in UNIX? For example, you need to find all occurrences of word "INFO" and has to replace with "DEBUG", how will you do it and which is the fastest way to do that? This was the complete question asked on one UNIX interviews. My answer was by using SED command, e.g.
sed s/INFO/DEBUG/g application.log
But I want to know from experts, whether that was right answer or not, with explanation?
Aug 19, 2013, 11:31:31 PM