Because i keep forgetting this sweet little one liner, I am putting it here.sed -e 's/#.*$//' -e '/^$/d' inputFile
sed -e 's/#.*$//' -e '/^$/d' inputFile