This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.