qse/regress/awk/stripcomment.awk

12 lines
150 B
Awk
Raw Normal View History

BEGIN {
RS = "/\\*([^*]|\\*+[^/*])*\\*+/"
# comment is record separator
ORS = " "
2009-09-03 06:55:55 +00:00
getline hold
}
{ print hold ; hold = $0 }
2009-09-03 06:55:55 +00:00
END { print hold }