#!/usr/bin/gawk -f #/* vim: set filteype=awk : */ -*- awk -*- BEGIN{ FS = " *, *"; } #Skip blank and comment lines {sub(/\%.*/,"")} #Substitute comments with blanks {gsub(/[\'\"\`]/,"",$0)} #Remove any single or double quotes from this line {gsub("'", "", $0)} #Remove any single quotes /^[ \t]*$/ {next} #When blank line observed, go to the next line /^java/ {next} {print $0}