# Sample script-file #2 # 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"} # List lines by fields 1,3,4 &5 for # lines that contain the pattern "chevy" {if ($1 ~ /chevy/) print $1,$3,$4,$5} # Display Report Footer END {print "\n- End of Report -\n\n"}