Skip to main content
5 of 5
Minor improvement to formatting
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

How can I delete all characters falling under /* .... */ including /* & */?

I did tried sed and awk, but its not working as the character involves / which is already there in command as delimiter.

Please let me know how can I achieve this.

Below is a sample Example. We want to remove the commented sections, i.e /*.....*/

/*This is to print the output
data*/
proc print data=sashelp.cars;
run;
/*Creating dataset*/
data abc;
set xyz;
run;