# Sample script-file #1 # Display Report Header: # The BEGIN command is used to group # actions (contained within braces) # at the top of the report BEGIN {printf "\n\nMurray's Used Cars\n" printf "Inventory Report\n" printf "(Chevrolet)\n\n"} # Match & process lines containing pattern "chevy" /chevy/ {print $1,$3,$4,$5} # Display Report Footer: # The END command is used to group # actions at the end of the report END {print "\n- End of Report -\n\n"}