Skip to main content
Minor improvement to formatting
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

I did tried sedsed and awkawk, 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 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;

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;

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;
Tweeted twitter.com/StackUnix/status/756272473449046016
added 34 characters in body
Source Link
don_crissti
  • 85.6k
  • 31
  • 234
  • 262

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;

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

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;

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;
added 217 characters in body
Source Link

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;

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.

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;

edited tags
Source Link
terdon
  • 252.2k
  • 69
  • 480
  • 718
Loading
Source Link
Loading