Block of code replacement in Java source code through Unix script
Hi,
I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory.
It would be great if the script has the following capability.
It should identify
a) finally block and its {
b) after that it should ignore { } combinations until it gets its closing }
for ex: in the above, inside finally , there is an if and it has { and } which are to be ignored.
3) and once it identified whole block, it has to be removed.
Many thanks for your help.
Last edited by Franklin52; 01-26-2012 at 03:42 AM..
Reason: Please use code tags for code and data samples, thank you
Thanks for your time. However, this is failing while handling while there are comments with /* and other stuff with special characters possible in java.
hi Folks!!
Just got a question in mind....
Is it possible for us to read the c code of the commands in the bin directory? I work on a LINUX server and i only see executables in the bin directory which i obviously can't read. Please help me regarding this.
Thanks in advance and wishing you a very... (2 Replies)
I have C++ exe file( no source code) and need to run many large dataset under unix, but how to know the memeroy usage for one dataset?http://www.codeproject.com/script/Forums/Images/New.gif
I think "top" is not good and if using the profiler, it seems no free download, any ideas? (1 Reply)
Hi,
when i compile my java code in UNIX using javac, the class file is getting created. But when i try to run the code using java - classpath command, i get the following error.
----------------------------------------
/u/up11/sample/request:>java -classpath /u/up11/sample/request... (0 Replies)
Can anyone tell me how/where to get the source code for the unix commands like "ls ,finger,cp....etc" commands . I
have tried very hard but failed so far.
Thanks
JAGDISH MACHHI (4 Replies)
Discussion started by: jagdish.machhi@
4 Replies
6. Post Here to Contact Site Administrators and Moderators
Do you have the source code of UNIX?
If yes, can you please send it to me on my email
email address deleted
For your this help I shall be obliged to you.
With Regards
rajesh
***phone removed*** (1 Reply)
Discussion started by: rajesh_ranjan26
1 Replies
7. Post Here to Contact Site Administrators and Moderators