i have to remove the commented (/* . . . .*/) part which starts in one line and ends in other.help me with generic code because i have 1000 to 10k lines code which i have to remove.
data one;
set work.temp;
input name age;
infile filename;
/* dfsdf
dsfs
sdfdf
dsdd
sdfsf
sdfsf
sfs
fsfs
dffsf */
if age > 10 the do;
/* people who have age
more than 10
*/
run;
I have tried below code:
sed 's#; */\*[^*]*\*/ *$#;#' filename.txt
egrep -v '/|/d' filename.txt
sed -v '/\/\*/,/\*\//p' filename.txt