Trying to remove the text between two strings (/* and */) in a txt file without deleting full lines.
Lets say I have a file containing the following:
/* reports */
%report1([email protected] /*[email protected] */,lag=3);
%report2([email protected] /*[email protected]
[email protected] */ ,lag=3);
My desired output would be
%report1([email protected], lag=3);
%report2([email protected]
,lag=3);
I have tried many combinations of tr, sed, and awk, but still not working.
Any Thoughts? Notice that report 2 is on two different lines with the delimiters /* and */ also on separate lines.
lag=3to be behind%report2?