grep: keep register value