awk 'BEGIN { print "Month Crates" print "----- ------" } { print $1, " ", $2 }' inventory-shipped
from Output Separators, by using a new value of OFS
.
printf
statement to line up the headings and table data
for the inventory-shipped example that was covered in The print
Statement.
BEGIN { print "Serious error detected!" > /dev/stderr }