In case that you do not have a fixed columns and also do not know what column is empty you can try use the following script or simply get it from an attachment. Copy it locally and make it executable:
$ chmod +x column.pl
To use it input two arguments: input file and output file