shouldn't that be something like `sed 's/#.*$//g'`, so as not to delete lines with comments after them? (Or we can just be careful not to do that, but seems like it could bite us.)