You're trying to strip '.log' of $model, where clearly you want to strip it of $ip.
In reply to Re: subsitute s/ and match m/ failure by b10m in thread subsitute s/ and match m/ failure by kp2a