I'm new to Unix shell scripting. Will be thankful if someone can help me out.
My requirement is to traverse through a directory structure (including sub-directories), search for a particular string in all Java files (eg. System.out.print), and delete those lines. Can anyone can help me to write such a script.
Note: There are lot of other activities involved. For example, if a file has that particular line, I need to check-it out first before performing a delete. Similarly, I also have to check-in the file once the update is done. So, it will be better if the script is divided into multiple functions, so that I can call them as and when required.