Simplified to a single awk statement, although had to use some quoting
to get the single quotes in.