#! /usr/bin/gawk -f
# Last edited on 2005-01-17 02:44:43 by stolfi

# Reads the body of a ".can" file (without headers and footers) 
# and prints the same data with the fields properly aligned in columns.

/^[ ]*[0-9]/ {
  printf "%3d %5d %5d %5d %s   %3d %5d %5d %5d %s  %10.4f %8.2f %8.2f",
    $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13;
  for (i = 14; i <= NF; i++) { printf " %s", $(i); }
  printf "\n";
  next;
}

//{ print; next; }