if your fields are tabbed, the next line of the script can print a table with cell borders
sed -e 's/\t/_|/g' table.txt | column -t -s '_' | awk '1;!(NR%1){print "-----------------------------------------------------------------------";}' Description |value |Comment ----------------------------------------------------------------------- Internal |322 | ----------------------------------------------------------------------- External |42515 | -----------------------------------------------------------------------
Luis muoz
source share