Blogger

Delete comment from: Javarevisited

Anonymous said...

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


Posted to 10 Examples of SED Command in UNIX and Linux

Google apps
Main menu