# Sample script-file #3 # Display Report Header BEGIN {printf "\n\nMurray's Used Cars\n" printf "Inventory Report\n" printf "(Chevrolet)\n\n" printf "Make\tYear\tQty\tPrice\n" printf "----\t----\t---\t-----\n"} # Note that OFS variable which specifies # the field separated when displayed has # been changed to a "tab" {OFS=" " if ($1 ~ /chevy/) print $1,$3,$4,$5} # Display Report Footer END {print "\n- End of Report -\n\n"}