1. trap 'rm -f "$TMPFILE"' EXIT: This sets up a trap to remove the temporary file when the script exits (either normally or due to an error).
  2. TMPFILE=$(mktemp) || exit 1: This creates a temporary file using the mktemp command and assigns its name to the variable TMPFILE. If the mktemp command fails (returns a non-zero exit code), the script exits with an error code of 1.
trap rm -f $TMPFILE EXITTMPFILE=$mktemp exit 1每行代码什么意思?