Again a comment removal requirement from me, refer my previous problem & solution for removing comment from ruby scripts: http://www.unix.com/shell-programming-scripting/118296-best-way-removing-comment-ruby-program.html
This time, it is for stripping of comments from Shell Script. I search for the options in bash man page, also tried searching tools. Nothing worked out.
So somebody has personal experience/knowledge in removing comments from shell program can help me ? What is the tool i should use ?
Note: Kindly dont say "grep -v '#'" as i am looking for a more promising solution, and it should remove all kind of comments from a shell script and should not remove the code part wrongly.