in reply to grep for a name

  1. Drop the semicolon from the end of your if.
  2. You want $goal = $2, not $1. (Even better, drop the parentheses around Type:.)
HTH
_______________
D a m n D i r t y A p e
Home Node | Email