Skip to main content
4 of 5
added 34 characters in body
don_crissti
  • 85.6k
  • 31
  • 234
  • 262

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;