adapter: strip trailing ; from awk script