#!/usr/bin/gawk -f #/* vim: set filetype=awk : */ -*- awk -*- BEGIN{ FS="," #Field } { sub(/#.*/,"")} /^[ \t]*$/{next} { print $Field }