I've manually removed some superfluous //------------------------------------- comments from all c++ files within a folder and its subfolders here .
Now I thought that it might be possible to replace "//<unknown number of dashes><line break>" with an empty string or a line break via a shell script.
Afterwards I'd want to replace three consecutive line breaks with two line breaks.
Could someone tell me how to achieve this with a shell script?