extract score from shell output