Tested with sed command and worked fine
command:sed -r "s/^\s+//g" filename|sed '/^\/\*.*\*\/$/d'
output
sed -r "s/^\s+//g" filename|sed '/^\/\*.*\*\/$/d'
printf("It is /* Comment 2 */\n");
x = 5; /* Comment 3 */
/* Comment 5 */ y = 0;
Tested with sed command and worked fine
command:sed -r "s/^\s+//g" filename|sed '/^\/\*.*\*\/$/d'
output
sed -r "s/^\s+//g" filename|sed '/^\/\*.*\*\/$/d'
printf("It is /* Comment 2 */\n");
x = 5; /* Comment 3 */
/* Comment 5 */ y = 0;