#!/bin/bash # hdr_vot input.vot # display header of a "vot" file, currently tuned for Gaia vot file # useful to see the units for each column # e.g. hdr_vot gaia.vot [ $# -eq 0 ] && { echo "hdrGaia gaia.vot .. for header"; exit -1; } IFILE=$1 grep "::;s/" /:/g;s/"//g;s/ //g;s/name=//;s/unit=//;s/ucd=//' | awk -F":" '{print $1,$2}' | column -t | nl