Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Could you please let mne know how it will work .I tried as below. tr '\n' '\0' | sed -e 's,/*([^*]\|*\+[^*/])**\+/,,g' test.sas | tr '\0' '\n' and i got as below: /*This is to print the output data*/data abcdf; set cfgtr; run; proc print data=sashelp.cars; run; data abc; set xyz; run; Commented Aug 5, 2016 at 13:25
  • @ShariqueAlam You've put test.sas in the middle of the pipeline there, so sed reads from it directly, and the first tr has no effect. You need to use cat test.sas | tr ... Commented Aug 6, 2016 at 14:49