|@ ghostdog: Thanks but I am looking to write a simple batch file for my task, not use tools.|
@Mechanix2Go: Your script seems to search for lines with a certain string. For my case, I need to comment out certain lines (say lines 5, 10, 11 etc.). And about the 4&7 lines, I meant that I need to find and replace a block of 4 lines of text with a set of 7 lines. How would you achieve these?