Shell function and wrapper for printing a line of text within fields defined by column location