Using Informix dbaccess e.g.
dbaccess
select col1, col2, col3 from MyTable
may output results like this
col1 col2