Converting Shapefile format to text format

You could do (which I think use ogr2ogr under the hood)

gmt convert file.shp > file.txt